Skip to content

Commit 48184cc

Browse files
authored
Merge pull request #4734 from xtermjs/coverage
Bring back unit test coverage report
2 parents abae7b6 + 923c28c commit 48184cc

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,39 @@ jobs:
7272
- name: Lint API
7373
run: yarn lint-api
7474

75+
test-unit-coverage:
76+
needs: build
77+
runs-on: ubuntu-latest
78+
timeout-minutes: 10
79+
steps:
80+
- uses: actions/checkout@v3
81+
- name: Use Node.js 18.x
82+
uses: actions/setup-node@v3
83+
with:
84+
node-version: 18.x
85+
cache: 'yarn'
86+
- name: Install dependencies
87+
run: |
88+
yarn --frozen-lockfile
89+
yarn install-addons
90+
- uses: actions/download-artifact@v3
91+
with:
92+
name: build-artifacts
93+
- name: Unzip artifacts (Linux, macOS)
94+
if: runner.os != 'Windows'
95+
run: unzip -o compressed-build.zip
96+
- name: Unzip artifacts (Windows)
97+
if: runner.os == 'Windows'
98+
run: 7z x compressed-build.zip -aoa -o${{ github.workspace }}
99+
- name: Print directory structure
100+
run: ls -R
101+
- name: Unit test coverage
102+
run: |
103+
yarn test-unit-coverage --forbid-only
104+
EXIT_CODE=$?
105+
./node_modules/.bin/nyc report --reporter=cobertura
106+
exit $EXIT_CODE
107+
75108
test-unit-parallel:
76109
timeout-minutes: 20
77110
strategy:

0 commit comments

Comments
 (0)