name: Check on: push: paths: ['backend/**', 'client/**', 'frontend/**', 'scripts/**', 'deploy/**', 'compose.yaml', '.github/workflows/check.yml'] pull_request: paths: ['backend/**', 'client/**', 'frontend/**', 'scripts/**', 'deploy/**', 'compose.yaml', '.github/workflows/check.yml'] jobs: delivery-static: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - run: sh scripts/check-delivery.sh - name: Compose configuration only (not runtime acceptance) env: MYSQL_APP_SECRET_FILE: /tmp/delivery-app.secret MYSQL_ROOT_SECRET_FILE: /tmp/delivery-root.secret LICENSE_SIGNING_KEY_HOST_FILE: /tmp/delivery-signing.pem PACKAGE_STORAGE_HOST: /tmp/delivery-packages run: docker compose config --quiet api: runs-on: ubuntu-latest services: redis: image: redis:7-alpine ports: ['16379:6379'] options: --health-cmd 'redis-cli ping' --health-interval 5s --health-timeout 3s --health-retries 10 env: ENTRY_REDIS_TEST_ADDR: 127.0.0.1:16379 defaults: run: working-directory: backend steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: go-version-file: backend/go.mod cache-dependency-path: backend/go.sum - uses: actions/setup-node@v4 with: node-version: '24' - run: go test ./... - run: go vet ./... - run: go test -race ./internal/httpapi -run 'TestOperations|TestOrigin|TestLocalLimiter|TestSessionCookie|TestPublicEntry|TestChunkedBody|TestRedisEntry|TestEntryMode' -count=1 web: runs-on: ubuntu-latest defaults: run: working-directory: frontend steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: '24' cache: npm cache-dependency-path: frontend/package-lock.json - run: npm ci - run: npm test - run: npm run build