Use monocart for coverage reports, enable codecov (#58850)

This commit is contained in:
Jake Bailey
2024-07-17 14:55:45 -07:00
committed by GitHub
parent e7e813542a
commit ba46eca139
7 changed files with 316 additions and 18 deletions

14
.github/codecov.yml vendored Normal file
View File

@@ -0,0 +1,14 @@
comment: false
coverage:
precision: 5
status:
patch:
default:
informational: true
project:
default:
informational: true
github_checks:
annotations: false

View File

@@ -69,6 +69,38 @@ jobs:
git add tests/baselines/reference
git diff --staged --exit-code
coverage:
runs-on:
- 'self-hosted'
- '1ES.Pool=TypeScript-1ES-GitHub-Large'
- '1ES.ImageOverride=ubuntu-22.04'
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: '*'
check-latest: true
- run: npm ci
- name: Run tests with coverage
run: npm test -- --no-lint --coverage
- name: Upload coverage artifact
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: coverage
path: coverage
- uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
with:
use_oidc: true
file: ./coverage/codecov.json
lint:
runs-on: ubuntu-latest