Files
PaperSats/.github/workflows/ci.yml
T
MichilisandClaude Opus 5.5 f09445b6ad
ci / check (push) Canceled after 0s
ci / images (push) Canceled after 0s
ci / e2e (push) Canceled after 0s
Initial commit
Paper Sats: design and print paper notes that carry sats.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 05:15:30 +00:00

71 lines
2.0 KiB
YAML

name: ci
on:
push:
branches: [main]
pull_request:
jobs:
check:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10.32.1
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm audit --prod --audit-level=high
- run: pnpm lint
- run: pnpm typecheck
- run: pnpm test
- run: pnpm build
e2e:
runs-on: ubuntu-latest
timeout-minutes: 60
needs: check
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10.32.1
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- run: pnpm install --frozen-lockfile
- run: pnpm --filter @paper-sats/web exec playwright install --with-deps
- name: Start local services
run: |
sudo apt-get update && sudo apt-get install -y postgresql
bash infra/local/start-all.sh
- run: pnpm test:int
- run: pnpm test:e2e
env:
E2E_SERVER_LOG: ${{ runner.temp }}/server.log
- name: Other browsers, the money flows
run: pnpm --filter @paper-sats/web exec playwright test --project=firefox --project=webkit --project=mobile-chrome --project=mobile-safari e2e/f1-guest.spec.ts e2e/f3-lnurlcash.spec.ts
images:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- run: docker compose -f infra/docker-compose.prod.yml config --quiet
env:
POSTGRES_PASSWORD: ci
DOMAIN: ci.invalid
TLS_DIR: /tmp
BACKUP_DIR: /tmp
- run: touch .env
- run: docker build -f infra/Dockerfile.web -t paper-sats-web .
- run: docker build -f infra/Dockerfile.worker -t paper-sats-worker .