Merge pull request #488 from preactjs/update-gh-actions #1347
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 | |
PREACT_VERSION=10 yarn test:e2e --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 |