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. (#88)
  • Loading branch information
Fil Maj authored May 13, 2024
1 parent 89d1451 commit c86af95
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 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 c86af95

Please sign in to comment.