Skip to content

init gumboard fork

init gumboard fork #1

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
test:
runs-on: ubicloud-standard-4
env:
GITHUB_CLIENT_ID: dummy-client-id
GITHUB_CLIENT_SECRET: dummy-client-secret
AUTH_SECRET: sample-auth-secret
AUTH_URL: http://localhost:3000
DATABASE_URL: postgresql://dummy:dummy@localhost:5432/dummy_db
EMAIL_FROM: noreply@example.com
AUTH_RESEND_KEY: dummy-resend-key
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- run: npm ci
- name: Test
run: npm test
- name: Cache Playwright Browsers
id: playwright-cache
uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-chromium-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-playwright-chromium-
- name: Install Playwright Browsers
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: npx playwright install chromium --only-shell
- name: E2E Tests
run: npm run test:e2e
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30