Skip to content

Commit 9e764c1

Browse files
committed
.
1 parent 63b62e1 commit 9e764c1

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
jobs:
99
build-and-test:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
checks: write
1114
steps:
1215
- name: Checkout repository
1316
uses: actions/checkout@v4
@@ -24,13 +27,12 @@ jobs:
2427
- name: Build
2528
run: npm run build
2629

27-
- name: Run tests
30+
- name: Run tests (with JUnit report)
2831
run: npm run test:ci
2932

30-
- name: Upload JUnit test report
33+
- name: Publish test results
3134
if: always()
32-
uses: actions/upload-artifact@v4
35+
uses: actions/upload-test-results@v1
3336
with:
34-
name: junit-test-results
35-
path: junit.xml
36-
if-no-files-found: warn
37+
files: junit.xml
38+
format: junit

0 commit comments

Comments
 (0)