From 5ce51dd99e06d5331945f2d4fd32de10adca463f Mon Sep 17 00:00:00 2001 From: Monkey Do Date: Tue, 31 Oct 2023 11:33:21 +0100 Subject: [PATCH] Update CI test results workflow (#495) Adding the required permissions to allow the workflow to write checks on pull requests*, as well as updating to a newer version of the workflow * see failures like so: https://github.com/metabrainz/critiquebrainz/actions/runs/6559728119/job/17815889047?pr=494#step:9:31 Co-authored-by: Kartik Ohri --- .github/workflows/tests.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e27a3fcb..46084eca 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,6 +11,9 @@ jobs: test: name: Run test suite runs-on: ubuntu-latest + permissions: + checks: write + pull-requests: write steps: - uses: actions/checkout@v2 @@ -25,6 +28,12 @@ jobs: - name: Run tests run: ./test.sh + - name: Publish Test Results + uses: EnricoMi/publish-unit-test-result-action@v2 + if: ${{ always() }} + with: + files: reports/tests.xml + prod: name: Build Production Image runs-on: ubuntu-latest