Skip to content

Commit 27e78d6

Browse files
committed
Fix CI workflow syntax and add missing generate-coverage job
- Remove orphaned code from performance benchmarks section - Add missing generate-coverage job that was referenced but not defined - Fix workflow structure and dependencies
1 parent ffaea32 commit 27e78d6

1 file changed

Lines changed: 36 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,43 @@ jobs:
9494
echo "🧪 Running integration tests in CI environment"
9595
pnpm test:integration || echo "No integration tests found, skipping"
9696
97+
# === QUALITY GATE STAGE ===
98+
generate-coverage:
99+
name: Generate Coverage Reports
100+
runs-on: ubuntu-latest
101+
needs: [run-unit-tests, run-integration-tests]
102+
permissions:
103+
contents: read
104+
packages: write
105+
checks: write
106+
steps:
107+
- name: Checkout repository
108+
uses: actions/checkout@v4
109+
110+
- name: Setup Node.js and pnpm
111+
uses: ./.github/actions/setup-node-pnpm
112+
113+
- name: Cache dependencies
114+
uses: actions/cache@v4
115+
with:
116+
path: ~/.pnpm-store
117+
key: ${{ needs.setup-environment.outputs.cache-key }}
118+
119+
- name: Generate coverage
120+
run: |
121+
echo "📊 Running coverage in CI environment"
122+
mkdir -p coverage
123+
pnpm test:coverage
124+
125+
- name: Upload coverage reports
126+
uses: actions/upload-artifact@v4
127+
if: always()
128+
with:
129+
name: coverage-reports
130+
path: coverage/
131+
retention-days: 30
97132

98-
else
99-
echo "❌ Performance benchmark failed"
100-
echo "duration=failed" >> $GITHUB_OUTPUT
101-
echo "performance=failed" >> $GITHUB_OUTPUT
102-
exit 1
103-
fi
133+
run-performance-benchmarks:
104134

105135

106136

0 commit comments

Comments
 (0)