Skip to content

Commit 5ea3225

Browse files
committed
wip
1 parent 4b9348d commit 5ea3225

File tree

1 file changed

+39
-32
lines changed

1 file changed

+39
-32
lines changed

.github/workflows/test.yml

Lines changed: 39 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,47 @@
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:
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:
1313
- uses: actions/checkout@v3
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
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
2020

21-
test: # make sure the action works on a clean machine without building
22-
runs-on: ubuntu-latest
23-
steps:
21+
test: # make sure the action works on a clean machine without building
22+
runs-on: ubuntu-latest
23+
steps:
2424
- uses: actions/checkout@v3
25-
- uses: ./
25+
- uses: ./
2626

27+
dump-event:
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/upload-artifact@v3
31+
with:
32+
name: github-context
33+
path: ${{github.event_path}}
2734

28-
pr-build-test:
29-
runs-on: ubuntu-latest
30-
if: ${{ github.event_name == 'pull_request' }}
31-
steps:
35+
pr-build-test:
36+
runs-on: ubuntu-latest
37+
if: ${{ github.event_name == 'pull_request' }}
38+
steps:
3239
- uses: actions/checkout@v3
3340
- uses: actions/setup-node@v3
34-
with:
41+
with:
3542
node-version: '16'
36-
- run: |
37-
npm ci
38-
- run: |
39-
npm run build
40-
- uses: ./
43+
- run: |
44+
npm ci
45+
- run: |
46+
npm run build
47+
- uses: ./

0 commit comments

Comments
 (0)