Skip to content

Commit 4d27bca

Browse files
committed
ci/test: setup permissions for reporter to comment on PRs
Signed-off-by: Ruby Iris Juric <[email protected]>
1 parent 9873d31 commit 4d27bca

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

.github/workflows/test.yml

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
pull_request:
66

77
jobs:
8-
build:
8+
test:
99
runs-on: ubuntu-24.04
1010

1111
steps:
@@ -22,8 +22,29 @@ jobs:
2222
env:
2323
SKIP_DOCS: true # TODO: remove once we can get docs artifacts in here easily
2424

25+
- name: Upload report artifact
26+
uses: actions/upload-artifact@v4
27+
with:
28+
name: test-report
29+
path: /tmp/rspec_report.json
30+
if-no-files-found: error
31+
32+
report:
33+
runs-on: ubuntu-24.04
34+
needs: test
35+
if: always()
36+
37+
permissions:
38+
contents: read
39+
pull-requests: write
40+
41+
steps:
42+
- name: Download report artifact
43+
uses: actions/download-artifact@v4
44+
with:
45+
name: test-report
46+
2547
- name: Report results
2648
uses: SonicGarden/rspec-report-action@v6
2749
with:
28-
json-path: /tmp/rspec_report.json
29-
if: always()
50+
json-path: rspec_report.json

0 commit comments

Comments
 (0)