ci: improve GitHub Actions workflow configurations #40
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 run tests using deno and then upload the coverage reports to Codecov. | |
| name: Run Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@main | |
| - name: Install pnpm | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: latest | |
| - run: npm install pnpm -g | |
| - name: Run test cases | |
| uses: denoland/setup-deno@v2 | |
| - run: deno install | |
| - run: pnpm test | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} |