Skip to content

Commit

Permalink
Split out health score as separate job that runs after test, and expl…
Browse files Browse the repository at this point in the history
…icitly has check-writing permissions.
  • Loading branch information
filmaj committed May 13, 2024
1 parent f367beb commit 56f53ef
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/deno-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 56f53ef

Please sign in to comment.