File tree Expand file tree Collapse file tree 1 file changed +44
-37
lines changed
Expand file tree Collapse file tree 1 file changed +44
-37
lines changed Original file line number Diff line number Diff line change 1- name : ' build-test'
2- on : # rebuild any PRs and main branch changes
3- pull_request :
4- push :
5- branches :
6- - main
7- - ' releases/*'
8-
9- jobs :
10- build : # make sure build/ci work properly
11- runs-on : ubuntu-latest
12- steps :
13- - uses : actions/checkout@v2
14- - run : |
15- npm ci
16- - run : |
17- npm run all
18- - name : Verify no unstaged changes
19- run : __test__/verify-no-unstaged-changes.sh
20- test : # make sure the action works on a clean machine without building
21- runs-on : ubuntu-latest
22- steps :
23- - uses : actions/checkout@v2
24- - uses : ./
25- pr-build-test :
26- runs-on : ubuntu-latest
27- if : ${{ github.event_name == 'pull_request' }}
28- steps :
29- - uses : actions/checkout@v2
30- - uses : actions/setup-node@v2
31- with :
32- node-version : ' 12'
33- - run : |
34- npm ci
35- - run : |
36- npm run build
37- - uses : ./
1+ name : ' build-test'
2+ on : # rebuild any PRs and main branch changes
3+ pull_request :
4+ push :
5+ branches :
6+ - main
7+ - ' releases/*'
8+
9+ jobs :
10+ build : # make sure build/ci work properly
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v2
14+ - run : |
15+ npm ci
16+ - run : |
17+ npm run all
18+ - name : Verify no unstaged changes
19+ run : __test__/verify-no-unstaged-changes.sh
20+ test : # make sure the action works on a clean machine without building
21+ runs-on : ubuntu-latest
22+ steps :
23+ - uses : actions/checkout@v2
24+ - uses : ./
25+ dump-event :
26+ runs-on : ubuntu-latest
27+ steps :
28+ - uses : actions/upload-artifact@v3
29+ with :
30+ name : github-context
31+ path : ${{github.event_path}}
32+ pr-build-test :
33+ runs-on : ubuntu-latest
34+ if : ${{ github.event_name == 'pull_request' }}
35+ steps :
36+ - uses : actions/checkout@v2
37+ - uses : actions/setup-node@v2
38+ with :
39+ node-version : ' 12'
40+ - run : |
41+ npm ci
42+ - run : |
43+ npm run build
44+ - uses : ./
You can’t perform that action at this time.
0 commit comments