chore: Switch all scripts in pkg.json to use yarn #1357
This file contains 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: Node CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install Deps | |
run: yarn | |
- name: Install Playwright | |
run: yarn playwright install-deps chromium | |
- name: Run tests | |
run: | | |
yarn lint | |
yarn test | |
yarn build:chrome | |
yarn test:e2e:10 --retries 5 | |
env: | |
CI: true | |
- name: Upload test results | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: playwright-report | |
path: playwright-report | |
retention-days: 5 |