Skip to content

fix: enforce CI failure on coverage report errors in workflow #298

fix: enforce CI failure on coverage report errors in workflow

fix: enforce CI failure on coverage report errors in workflow #298

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
id-token: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Setup Node.js
uses: actions/setup-node@v7
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run type check
run: npm run type-check
- name: Run tests with coverage
run: npm run test:coverage -w @eclipse-docks/core
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v7
with:
use_oidc: true
files: packages/core/coverage/lcov.info
disable_search: true
fail_ci_if_error: true
- name: Install Playwright Chromium
run: npm run playwright:install-chromium-ci
- name: Run E2E tests
run: npm run test:e2e