feat: implement scrypt #110
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: Tests | |
| on: | |
| push: | |
| branches: [main, "feature/*"] | |
| paths: | |
| - 'backend/**' | |
| - 'frontend/**' | |
| - 'shared/**' | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - 'backend/**' | |
| - 'frontend/**' | |
| - 'shared/**' | |
| permissions: | |
| contents: read | |
| jobs: | |
| backend-unit: | |
| name: Backend unit tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: yarn | |
| cache-dependency-path: backend/yarn.lock | |
| - name: Install and build shared | |
| working-directory: shared | |
| run: yarn install --frozen-lockfile --non-interactive && yarn build | |
| - name: Install backend dependencies | |
| working-directory: backend | |
| run: yarn install --frozen-lockfile --non-interactive | |
| - name: Run unit tests | |
| working-directory: backend | |
| run: yarn test | |
| backend-e2e: | |
| name: Backend e2e tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: yarn | |
| cache-dependency-path: backend/yarn.lock | |
| - name: Install and build shared | |
| working-directory: shared | |
| run: yarn install --frozen-lockfile --non-interactive && yarn build | |
| - name: Install backend dependencies | |
| working-directory: backend | |
| run: yarn install --frozen-lockfile --non-interactive | |
| - name: Run e2e tests | |
| working-directory: backend | |
| run: yarn test:e2e | |
| frontend: | |
| name: Frontend tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: yarn | |
| cache-dependency-path: frontend/yarn.lock | |
| - name: Install and build shared | |
| working-directory: shared | |
| run: yarn install --frozen-lockfile --non-interactive && yarn build | |
| - name: Install frontend dependencies | |
| working-directory: frontend | |
| run: yarn install --frozen-lockfile --non-interactive | |
| - name: Run tests | |
| working-directory: frontend | |
| run: yarn vitest --run | |
| frontend-e2e: | |
| name: Frontend e2e tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: yarn | |
| cache-dependency-path: frontend/yarn.lock | |
| - name: Install and build shared | |
| working-directory: shared | |
| run: yarn install --frozen-lockfile --non-interactive && yarn build | |
| - name: Install frontend dependencies | |
| working-directory: frontend | |
| run: yarn install --frozen-lockfile --non-interactive | |
| - name: Install Playwright browsers | |
| working-directory: frontend | |
| run: npx playwright install --with-deps chromium | |
| - name: Run Playwright tests | |
| working-directory: frontend | |
| run: yarn test:e2e | |
| - name: Upload report | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: playwright-report | |
| path: frontend/playwright-report/ | |
| retention-days: 7 |