Merge pull request #198 from mateuszmigas/dependabot/npm_and_yarn/all… #702
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: Validate | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "18" | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9.2.0 | |
- name: Install packages | |
run: pnpm install --prefer-offline | |
- name: Run unit tests, typescript checks and linting | |
run: pnpm validate | |
e2e-tests: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "18" | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9.2.0 | |
- name: Install packages | |
run: pnpm install --prefer-offline | |
- name: Install browsers | |
run: pnpm --filter @painting-droid/web test:e2e:install-browsers | |
- name: Run e2e tests | |
run: pnpm --filter @painting-droid/web test:e2e | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: playwright-report | |
path: apps/web/playwright-report/ | |
retention-days: 30 | |