fix(Data Mapper): Remove extra styling and clear out test results (#6… #854
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'base-coverage' | |
on: | |
push: | |
branches: [main] | |
jobs: | |
base-coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout Github Action' | |
uses: actions/checkout@master | |
- name: Cache turbo build setup | |
uses: actions/cache@v4 | |
with: | |
path: .turbo | |
key: ${{ runner.os }}-turbo-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-turbo- | |
- name: Set up Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 20.x | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 9.1.3 | |
run_install: | | |
- recursive: true | |
args: [--frozen-lockfile, --strict-peer-dependencies] | |
- name: Run lib unit tests | |
run: pnpm turbo run test:lib --cache-dir=.turbo | |
- name: Run extension unit tests | |
run: pnpm turbo run test:extension-unit --cache-dir=.turbo | |
- name: Create code coverage report | |
run: | | |
dotnet tool install -g dotnet-reportgenerator-globaltool | |
reportgenerator -reports:"libs/*/coverage/cobertura-coverage.xml;apps/vs-code-designer/coverage/cobertura-coverage.xml" -targetdir:CodeCoverage -reporttypes:'Cobertura;MarkdownSummaryGithub' | |
- uses: clearlyip/code-coverage-report-action@v4 | |
with: | |
#Location of the generated coverage file | |
filename: 'CodeCoverage/Cobertura.xml' | |
- name: Write to Job Summary | |
run: cat CodeCoverage/SummaryGithub.md >> $GITHUB_STEP_SUMMARY |