Add browser testing #1026
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: 🛠 | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - 'v[0-9]+.x' | |
| pull_request: | |
| branches: | |
| - main | |
| - 'v[0-9]+.x' | |
| jobs: | |
| build: | |
| name: build | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup | |
| with: | |
| node-version: '20' | |
| - name: Compile package | |
| run: pnpm compile | |
| - name: Run checks | |
| run: | | |
| pnpm format | |
| pnpm types | |
| pnpm lint | |
| test: | |
| name: test | |
| needs: build | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup | |
| with: | |
| node-version: '20' | |
| - name: Compile package | |
| run: pnpm compile | |
| - name: Run tests with coverage | |
| run: pnpm test:coverage | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |