Stabilize Firefox browser tests #58
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] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: '26' | |
| - uses: actions/cache@v3 | |
| with: | |
| path: node_modules | |
| key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
| - run: yarn install | |
| - name: Install Playwright browsers | |
| run: npx --yes --package=node@18.20.8 --call 'node node_modules/playwright-core/cli.js install --with-deps chromium firefox' | |
| - run: yarn build | |
| - name: Configure ChromeDriver | |
| run: | | |
| CHROMEVER="$(chromedriver --version | cut -d' ' -f2)" | |
| echo "Actions ChromeDriver is $CHROMEVER" | |
| driver_dir="node_modules/@theintern/digdug/selenium-standalone/${CHROMEVER}/x64" | |
| mkdir -p "$driver_dir" | |
| install -m 755 "$(command -v chromedriver)" "$driver_dir/chromedriver" | |
| echo "CHROMEVER=${CHROMEVER}" >> $GITHUB_ENV | |
| - name: Lint | |
| run: yarn lint | |
| - name: Unit Test | |
| run: yarn test:unit | |
| - name: Chrome Test | |
| run: yarn test:browser --project=chrome | |
| - name: Firefox Test | |
| run: yarn test:browser --project=firefox | |
| - name: Chrome With Trusted Types Test | |
| run: yarn test:browser --project=chrome-with-trusted-types |