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 7cd8b81
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,27 @@ jobs:
key: ${{ runner.os }}-electron-${{ hashFiles('./package-lock.json') }}
path: ~/Library/Caches/electron

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

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

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

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

- name: Upload coverage to Codecov
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 7cd8b81

Please sign in to comment.