Skip to content

Commit

Permalink
test(neon): Upload code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
kjvalencik committed Jan 30, 2025
1 parent 065ba2d commit d9869fc
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,28 @@ jobs:
key: ${{ runner.os }}-electron-${{ hashFiles('./package-lock.json') }}
path: ~/Library/Caches/electron

- name: Install cargo-llvm-cov
if: matrix.os == 'ubuntu-latest' && matrix.rust-toolchain == 'stable'
uses: taiki-e/install-action@cargo-llvm-cov

- name: Set coverage environment variables
if: matrix.os == 'ubuntu-latest' && matrix.rust-toolchain == 'stable'
run: cargo llvm-cov show-env | tr -d "'" >> $GITHUB_ENV

- name: npm install
run: npm ci --prefer-offline --no-audit --no-fund

- name: Generate coverage report
if: matrix.os == 'ubuntu-latest' && matrix.rust-toolchain == 'stable'
run: cargo llvm-cov report --ignore-filename-regex test --codecov --output-path target/codecov.json

- name: Upload coverage to Codecov
if: matrix.os == 'ubuntu-latest' && matrix.rust-toolchain == 'stable'
uses: codecov/codecov-action@v3
with:
files: target/codecov.json
fail_ci_if_error: true

- name: Allow unprivileged X server
if: matrix.os == 'ubuntu-latest'
run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
Expand Down

0 comments on commit d9869fc

Please sign in to comment.