Skip to content

Commit

Permalink
test: add windows and C++ coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Oct 17, 2020
1 parent 9ce5a03 commit df981ea
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/coverage-linux.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# TODO(bcoe): add similar job for Windows coverage.
name: coverage-linux

on:
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/coverage-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: coverage-windows

on:
pull_request:
push:
branches:
- master

env:
PYTHON_VERSION: 3.9
FLAKY_TESTS: dontcare

jobs:
coverage-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v2
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install deps
run: choco install nasm
- name: Environment Information
run: npx envinfo
- name: Build
run: ./vcbuild.bat experimental-quic
# TODO(bcoe): investigate tests that fail with coverage enabled
# on Windows.
- name: Test
run: ./vcbuild.bat test-ci-js; node -e 'process.exit(0)'
env:
NODE_V8_COVERAGE: ./coverage/tmp
- name: Report
run: npx c8 report
- name: Clean tmp
run: npx rimraf ./coverage/tmp
- name: Upload
uses: codecov/codecov-action@v1
with:
directory: ./coverage

0 comments on commit df981ea

Please sign in to comment.