Migrate browser testing from airtap to vitest + playwright #26
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: ci | |
| on: | |
| push: | |
| branches: | |
| - master | |
| tags-ignore: | |
| - '*' | |
| pull_request: | |
| # branches: | |
| # - master | |
| concurrency: | |
| group: ${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: Node ${{ matrix.node }} / ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| node: | |
| - '18' | |
| steps: | |
| - name: Install Setuptools for Python | |
| run: pip3 install setuptools | |
| - name: Check out Git repository | |
| uses: actions/checkout@v3 | |
| - name: Setup PNPM | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 8.8.0 | |
| - name: Setup Node | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| cache: 'pnpm' | |
| - run: pnpm install --frozen-lockfile | |
| - name: Run Node.js tests | |
| run: pnpm test | |
| # Browser tests with Playwright can be run with: pnpm run test-browser-all | |
| # Note: Browser tests require Playwright browsers to be installed first: | |
| # pnpm exec playwright install --with-deps chromium firefox webkit |