From 73b78af8b7f25055845fb2610adc37aafc965b10 Mon Sep 17 00:00:00 2001 From: Filip Maj Date: Mon, 13 May 2024 17:19:22 -0400 Subject: [PATCH] Split out health score as separate job that runs after test, and explicitly has check-writing permissions. --- .github/workflows/deno-ci.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deno-ci.yml b/.github/workflows/deno-ci.yml index e9ef053..83abac2 100644 --- a/.github/workflows/deno-ci.yml +++ b/.github/workflows/deno-ci.yml @@ -17,28 +17,31 @@ on: jobs: test: runs-on: ubuntu-latest - steps: - name: Setup repo uses: actions/checkout@v4 - - name: Setup Deno uses: denoland/setup-deno@v1 with: deno-version: v1.x - - name: Run tests run: deno task test - - name: Generate CodeCov-friendly coverage report run: deno task generate-lcov - - name: Upload coverage to CodeCov uses: codecov/codecov-action@v4 with: file: ./lcov.info token: ${{ secrets.CODECOV_TOKEN }} - + + health-score: + needs: test + permissions: + checks: write + runs-on: ubuntu-latest + steps: + - name: Setup repo + uses: actions/checkout@v4 - name: Report health score uses: slackapi/slack-health-score@v0 with: