Skip to content

repro TypeStrong/ts-node#2099 #249

repro TypeStrong/ts-node#2099

repro TypeStrong/ts-node#2099 #249

Workflow file for this run

name: Run reproduction
on: [push, pull_request]
jobs:
run:
name: Run
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.0.0
#
# NOTE THIS CONDITIONAL IS DISABLED all repros run on the ubuntu host
#
# Conditional logic allows reproductions to choose between 2x test environments:
# run.sh is executed on the github actions ubuntu host
# run2.sh is executed within the docker container
#
# Reproductions should either have a run.sh or run2.sh, not both
#
- name: Check file existence
id: check_files_1
uses: andstor/file-existence-action@v1
with:
files: "run.sh"
#- name: Check file existence
# id: check_files_2
# uses: andstor/file-existence-action@v1
# with:
# files: "run2.sh"
# run.sh
- name: Run
if: steps.check_files_1.outputs.files_exists == 'true'
run: |
if [ -f run.sh ] ; then
echo $'------------\n------------\n\n\n'
bash ./run.sh
fi
# run.sh
#- name: Build runner
# if: steps.check_files_2.outputs.files_exists == 'true'
# uses: TypeStrong/ts-node-repros/.github/runner@main
# with:
# entrypoint: /bin/bash
# args: "-l -c \"echo Built\""
#- name: Run
# if: steps.check_files_2.outputs.files_exists == 'true'
# uses: TypeStrong/ts-node-repros/.github/runner@main
# with:
# entrypoint: /bin/bash
# args: "-l -c \"echo $'------------\n------------\n\n\n' && /bin/bash ./run2.sh\""