Skip to content

Updated coverage

Updated coverage #72

Workflow file for this run

name: Code Coverage
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
code-coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Install Tarpaulin
run: cargo install cargo-tarpaulin
working-directory: ./rust
- name: Run tests with coverage
env:
API_KEY: ${{ secrets.API_KEY }}
run: cargo tarpaulin --out Xml
working-directory: ./rust
- name: Upload coverage report
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: ./rust/tarpaulin-report.xml
- name: Publish coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: ./rust/tarpaulin-report.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: true
working-directory: ./rust

Check failure on line 46 in .github/workflows/code-coverage.yml

View workflow run for this annotation

GitHub Actions / Code Coverage

Invalid workflow file

The workflow is not valid. .github/workflows/code-coverage.yml (Line: 46, Col: 7): Unexpected value 'working-directory'