diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index a982926..60d2183 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -83,15 +83,12 @@ jobs: deps: name: 🔒 Dependencies runs-on: ubuntu-latest + if: github.event_name == 'pull_request' steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/dependency-review-action@v5 with: - node-version: 22 - cache: npm - - run: npm ci - - run: npm audit --audit-level=high - - run: npm ls --all + fail-on-severity: high summarize: name: 📊 Summary @@ -117,7 +114,7 @@ jobs: DEPS: ${{ needs.deps.result }} run: | em() { case "$1" in success) echo "✅";; failure) echo "❌";; cancelled|skipped) echo "⏭️";; *) echo "❔";; esac; } - line() { r="$1"; n="$2"; cmd="$3"; s="Passing"; [ "$r" != "success" ] && s="**Failing** - run \`$cmd\`"; echo "- $(em "$r") $n: $s"; } + line() { r="$1"; n="$2"; cmd="$3"; s="Passing"; [ "$r" = "failure" ] && s="**Failing** - run \`$cmd\`"; [ "$r" = "skipped" ] && s="Skipped"; echo "- $(em "$r") $n: $s"; } { echo "## Check Summary" diff --git a/playwright.config.ts b/playwright.config.ts index 6e0df1b..57e17e6 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -37,7 +37,7 @@ export default defineConfig({ webServer: { command: 'npm run build && npm run preview', port: 4173, - timeout: 120000, + timeout: 300000, reuseExistingServer: !process.env.CI, }, }); diff --git a/tests/vitest.api.config.ts b/tests/vitest.api.config.ts index 1a4cb3e..d9c3a01 100644 --- a/tests/vitest.api.config.ts +++ b/tests/vitest.api.config.ts @@ -6,6 +6,7 @@ export default defineConfig({ environment: 'node', globals: true, testTimeout: 30000, // API tests might take longer + retry: process.env.CI ? 2 : 0, // Some endpoints depend on flaky third-party services hookTimeout: 10000, teardownTimeout: 10000, reporters: ['verbose'],