Merge pull request #170 from ventojs/update-in-to-of-in-for-tag #510
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: Tests | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup repo | |
| uses: actions/checkout@v4 | |
| - name: Setup Deno | |
| uses: denoland/setup-deno@v2 | |
| with: | |
| cache: true | |
| deno-version: v2.x | |
| - name: Verify formatting | |
| run: deno fmt --check | |
| - name: Run linter | |
| run: deno lint | |
| - name: Run tests | |
| run: deno task test | |
| - name: Run benchmarks | |
| run: deno task bench | |
| - name: Build docs | |
| run: cd docs && deno task build | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: "docs/_site" | |
| - name: Deploy to GitHub Pages | |
| if: ${{ github.event_name == 'push' }} | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |