Skip to content

Commit 5d4dafa

Browse files
committed
update dep github actions
1 parent 80e5425 commit 5d4dafa

1 file changed

Lines changed: 18 additions & 13 deletions

File tree

.github/workflows/tests.yaml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ on:
1010
env:
1111
retention_days: 3
1212

13+
permissions:
14+
checks: write
15+
contents: read
16+
pull-requests: write
17+
security-events: write # required for SARIF upload
18+
actions: read
19+
1320
jobs:
1421
tests:
1522
runs-on: ubuntu-latest
@@ -103,16 +110,11 @@ jobs:
103110
retention-days: ${{ env.retention_days }}
104111
# displays in summary page
105112
- name: Publish Test Report
106-
uses: mikepenz/action-junit-report@v3
107-
if: always() # always run even if the previous step fails
108-
with:
109-
report_paths: 'junit.xml'
110-
# more in depth junit in console and annotations on failures
111-
- uses: ashley-taylor/junit-report-annotations-action@1.3
112113
if: always()
114+
uses: EnricoMi/publish-unit-test-result-action@v2
113115
with:
114-
access-token: ${{ secrets.GITHUB_TOKEN }}
115-
path: junit.xml
116+
files: junit.xml
117+
check_name: Test Results
116118
- run: npm run test:coverage
117119
- name: upload code coverage
118120
uses: actions/upload-artifact@v4
@@ -121,16 +123,19 @@ jobs:
121123
path: coverage
122124
retention-days: ${{ env.retention_days }}
123125
# adds coverage comment to pr
124-
- name: parse coverage
125-
uses: danhunsaker/clover-reporter-action@v0.2.17-clover
126+
- name: Report coverage
127+
uses: dorny/test-reporter@v1
126128
with:
127-
github-token: ${{ secrets.GITHUB_TOKEN }}
128-
clover-file: ./coverage/clover.xml
129+
name: Jest Coverage
130+
path: coverage/clover.xml
131+
reporter: clover
132+
fail-on-error: false
133+
129134

130135
automerge:
131136
needs: tests
132137
name: Auto-merge PR if tests pass
133-
if: (github.actor == 'dependabot[bot]' || github.actor == 'imgbot[bot]') && needs.tests.result == 'success'
138+
if: (github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' || github.actor == 'imgbot[bot]') && needs.tests.result == 'success'
134139
runs-on: ubuntu-latest
135140
steps:
136141
- name: Merge PR

0 commit comments

Comments
 (0)