Open-source document signature platform. Not affiliated with DocuSign.
TypeScript
Add a CI workflow
Claude6d0ef19dc8aa
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlnew file mode 100644index 0000000..45513da--- /dev/null+++ b/.github/workflows/ci.yml@@ -0,0 +1,71 @@+name: CI++on:+ pull_request:+ push:+ branches: [main]++concurrency:+ group: ci-${{ github.ref }}+ cancel-in-progress: true++permissions:+ contents: read++jobs:+ check:+ name: Typecheck, lint, build+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v6+ - uses: actions/setup-node@v6+ with:+ node-version: 24+ cache: npm+ - run: npm ci+ - run: npm run typecheck+ - run: npm run lint+ # The build prerenders the legal pages, which read these values. They+ # are placeholders, not secrets.+ - run: npm run build+ env:+ NEXT_TELEMETRY_DISABLED: "1"+ APP_URL: https://ci.signudoc.example+ BETTER_AUTH_URL: https://ci.signudoc.example+ BETTER_AUTH_SECRET: ci-only-placeholder-secret-0123456789abcdef+ SUPPORT_EMAIL: [email protected]++ e2e:+ name: End-to-end test+ runs-on: ubuntu-latest+ services:+ postgres:+ image: postgres:17+ env:+ POSTGRES_USER: signudoc+ POSTGRES_PASSWORD: signudoc+ POSTGRES_DB: signudoc_e2e+ ports:+ - 5432:5432+ options: >-+ --health-cmd "pg_isready -U signudoc -d signudoc_e2e"+ --health-interval 5s+ --health-timeout 5s+ --health-retries 12+ steps:+ - uses: actions/checkout@v6+ - uses: actions/setup-node@v6+ with:+ node-version: 24+ cache: npm+ - run: npm ci+ - run: npx playwright install --with-deps chromium+ - run: npm run test:e2e+ env:+ E2E_DATABASE_URL: postgres://signudoc:[email protected]:5432/signudoc_e2e+ - uses: actions/upload-artifact@v6+ if: failure()+ with:+ name: playwright-traces+ path: test-results/+ retention-days: 7