Skip to content

Commit ef5f74c

Browse files
committed
ci: exclude test-report for PR and add missing spec2020-12 tests
1 parent 19ad300 commit ef5f74c

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
name: test-results-unit-tests
3535
path: test-result-unit.json
3636
- uses: dorny/[email protected]
37+
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
3738
with:
3839
name: test-results / unit-tests
3940
path: test-result-unit.json
@@ -53,6 +54,7 @@ jobs:
5354
name: test-results-spec-4
5455
path: test-result-spec4.json
5556
- uses: dorny/[email protected]
57+
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
5658
with:
5759
name: test-results / spec-4
5860
path: test-result-spec4.json
@@ -72,6 +74,7 @@ jobs:
7274
name: test-results-spec-6
7375
path: test-result-spec6.json
7476
- uses: dorny/[email protected]
77+
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
7578
with:
7679
name: test-results / spec-6
7780
path: test-result-spec6.json
@@ -91,6 +94,7 @@ jobs:
9194
name: test-results-spec-7
9295
path: test-result-spec7.json
9396
- uses: dorny/[email protected]
97+
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
9498
with:
9599
name: test-results / spec-7
96100
path: test-result-spec7.json
@@ -110,7 +114,28 @@ jobs:
110114
name: test-results-spec-2019-09
111115
path: test-result-spec2019-09.json
112116
- uses: dorny/[email protected]
117+
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
113118
with:
114119
name: test-results / spec-2019-09
115120
path: test-result-spec2019-09.json
116121
reporter: mocha-json
122+
123+
run-spec-2020-12-tests:
124+
runs-on: ubuntu-latest
125+
needs: install
126+
steps:
127+
- uses: actions/checkout@v3
128+
- name: Install dependencies
129+
run: yarn install --frozen-lockfile
130+
- name: Test spec 2020-12
131+
run: yarn test:2020:ci
132+
- uses: actions/upload-artifact@v4
133+
with:
134+
name: test-results-spec-2020-12
135+
path: test-result-spec2020-12.json
136+
- uses: dorny/[email protected]
137+
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
138+
with:
139+
name: test-results / spec-2020-12
140+
path: test-result-spec2020-12.json
141+
reporter: mocha-json

0 commit comments

Comments
 (0)