Refactor plots #184
Workflow file for this run
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: Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
unittest: | |
name: Unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
cache: "pnpm" | |
cache-dependency-path: ./pnpm-lock.yaml | |
- name: Install dependencies | |
run: pnpm install | |
- name: Test | |
run: pnpm test --filter '{packages/**}' | |
e2etest: | |
name: end-to-end tests | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
cache: "pnpm" | |
cache-dependency-path: ./pnpm-lock.yaml | |
- name: Install dependencies | |
run: pnpm install | |
- name: Build packages | |
run: pnpm build --filter '{packages/**}' | |
- name: Install Playwright Browsers | |
run: pnpm exec playwright install --with-deps chromium | |
working-directory: apps/class-solid | |
- name: Run Playwright tests | |
run: pnpm test --filter '{apps/**}' | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: playwright-report | |
path: apps/class-solid/playwright-report/ | |
retention-days: 30 |