Skip to content

Commit

Permalink
Split out health score as separate job that runs after test (#7)
Browse files Browse the repository at this point in the history
* Split out health score as separate job that runs after test, and explicitly has check-writing permissions.
  • Loading branch information
Fil Maj authored May 13, 2024
1 parent dd17f1b commit 761d788
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/deno-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +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:
runs-on: ubuntu-latest
needs: test
permissions:
checks: write
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 761d788

Please sign in to comment.