-
Notifications
You must be signed in to change notification settings - Fork 36
54 lines (49 loc) · 1.61 KB
/
main.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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\""