Refactor ScoreIndicator component #705
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: e2e Tests | |
on: | |
push: | |
paths: | |
- 'e2e/**' | |
- 'shared/**' | |
- 'api/**' | |
- 'client/**' | |
- '.github/workflows/e2e-tests.yml' | |
- '/*' # include changes in root | |
- '!infrastructure/**' # exclude infra folder | |
- 'package.json' | |
workflow_dispatch: | |
jobs: | |
e2e-tests: | |
name: e2e tests | |
runs-on: ubuntu-22.04 | |
services: | |
database: | |
image: postgis/postgis:16-3.4 | |
ports: | |
- 5432:5432 | |
env: | |
POSTGRES_USER: blue-carbon-cost | |
POSTGRES_PASSWORD: blue-carbon-cost | |
POSTGRES_DB: blc | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Node setup | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
- uses: pnpm/action-setup@v4 | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-node_modules-${{ hashFiles('pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-node_modules- | |
- name: Install dependencies | |
working-directory: . | |
run: pnpm install | |
- name: Install Chromium browser | |
working-directory: e2e | |
run: npx playwright install --with-deps chromium | |
- name: Run e2e tests | |
working-directory: e2e | |
run: pnpm test | |
- uses: actions/upload-artifact@v4 | |
if: ${{ !cancelled() }} | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 30 |