fix: drowned city issues #694
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: Continuous Integration | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
name: Check | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: "npm" | |
node-version-file: "package.json" | |
- run: npm ci | |
- run: npm run check | |
lint: | |
runs-on: ubuntu-latest | |
name: Lint | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: "npm" | |
node-version-file: "package.json" | |
- run: npm ci | |
- run: npm run lint | |
test: | |
runs-on: ubuntu-latest | |
name: Test | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: "npm" | |
node-version-file: "package.json" | |
- run: npm ci | |
- run: npm run test | |
e2e: | |
name: End-to-End Test | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
container: | |
image: mcr.microsoft.com/playwright:v1.49.1 | |
env: | |
VITE_PAGE_NAME: ${{ vars.VITE_PAGE_NAME }} | |
VITE_API_URL: ${{ vars.VITE_API_URL }} | |
VITE_CARD_IMAGE_URL: ${{ vars.VITE_CARD_IMAGE_URL }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: "npm" | |
node-version-file: "package.json" | |
- run: npm ci | |
- run: npm run prepare:e2e | |
- run: npm run test:e2e | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: playwright-report | |
path: playwright-report/ |