chore: update CI to support Deno 2 (#14) #53
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deno Continuous Integration | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| deno-version: | |
| - v1.x | |
| - v2.x | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Setup repo | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| persist-credentials: false | |
| - name: Setup Deno ${{ matrix.deno-version }} | |
| uses: denoland/setup-deno@e95548e56dfa95d4e1a28d6f422fafe75c4c26fb # v2.0.3 | |
| with: | |
| deno-version: ${{ matrix.deno-version }} | |
| - 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@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3 | |
| if: matrix.deno-version == 'v2.x' | |
| with: | |
| files: ./lcov.info | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| health-score: | |
| runs-on: ubuntu-latest | |
| needs: test | |
| permissions: | |
| checks: write | |
| contents: read | |
| steps: | |
| - name: Setup repo | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| persist-credentials: false | |
| - name: Report health score | |
| uses: slackapi/slack-health-score@d58a419f15cdaff97e9aa7f09f95772830ab66f7 # v0.1.1 | |
| with: | |
| codecov_token: ${{ secrets.FILS_CODECOV_API_TOKEN }} | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| extension: ts | |
| include: src |