Bump actions/checkout from 4 to 6 (#2) #5
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: CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: {} | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| name: Check w/ ${{ matrix.deno-version }} | |
| strategy: | |
| matrix: | |
| deno-version: | |
| - v2.0 | |
| - v2.1 | |
| - v2.2 | |
| - canary | |
| fail-fast: false # run each branch to completion | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v6 | |
| - name: Use Deno ${{ matrix.deno-version }} | |
| uses: denoland/setup-deno@v2 | |
| with: | |
| deno-version: ${{ matrix.deno-version }} | |
| - name: Test | |
| run: time deno test | |
| - name: Check publish rules | |
| run: time deno publish --dry-run | |
| publish: | |
| runs-on: ubuntu-latest | |
| needs: check | |
| if: github.event_name == 'push' | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - uses: denoland/setup-deno@v2 | |
| - uses: actions/checkout@v6 | |
| - name: Publish now | |
| run: deno publish |