Fix type #12
Workflow file for this run
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: Test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| check: | |
| strategy: | |
| matrix: | |
| runner: | |
| - ubuntu-latest | |
| deno_version: | |
| - "1.x" | |
| - "2.x" | |
| runs-on: ${{ matrix.runner }} | |
| steps: | |
| - run: git config --global core.autocrlf false | |
| if: runner.os == 'Windows' | |
| - uses: actions/checkout@v4 | |
| - uses: denoland/[email protected] | |
| with: | |
| deno-version: "${{ matrix.deno_version }}" | |
| - uses: actions/cache@v4 | |
| with: | |
| key: deno-${{ hashFiles('**/*') }} | |
| restore-keys: deno- | |
| path: | | |
| /home/runner/.cache/deno/deps/https/deno.land | |
| - name: Lint check | |
| run: deno lint | |
| - name: Format check | |
| run: deno fmt --check | |
| - name: Type check | |
| run: deno task check | |
| jsr-publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: denoland/setup-deno@v1 | |
| with: | |
| deno-version: ${{ env.DENO_VERSION }} | |
| - name: Publish (dry-run) | |
| run: | | |
| deno publish --dry-run |