update ci #2
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
| # This workflow will install Deno then run Deno fmt and test. | |
| # For more information see: https://github.com/denoland/setup-deno | |
| name: Deno Deploy & Test | |
| on: | |
| push: | |
| branches: ["main", "test"] | |
| pull_request: | |
| branches: ["main", "test"] | |
| permissions: | |
| id-token: write # This is required to allow the GitHub Action to authenticate with Deno Deploy. | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup repo | |
| uses: actions/checkout@v6 | |
| - name: Setup Deno | |
| uses: denoland/setup-deno@v1 | |
| with: | |
| deno-version: v2.x | |
| - name: Format | |
| run: deno fmt --check | |
| - name: Lint | |
| run: deno lint | |
| - name: Run tests | |
| run: deno task test | |
| - name: Run tests doc | |
| run: deno task test:doc |