Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Patch codecov token. #32

Patch codecov token.

Patch codecov token. #32

Workflow file for this run

name: Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: self-hosted
continue-on-error: false
steps:
- uses: actions/checkout@v3
- name: Install Toolchain
run: rustup update stable && rustup default stable && rustup component add rustfmt
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Format check
run: cargo fmt --all -- --check
- name: Generate code coverage
run: cargo llvm-cov --all-features --workspace --codecov --output-path lcov.info
- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: code-coverage-report
path: lcov.info
retention-days: 3
- name: Upload to codecov
uses: codecov/codecov-action@v3
with:
token: b74fae07-452c-41fb-8eb2-b164ed90340d
files: lcov.info
name: codecov-umbrella # optional
fail_ci_if_error: true
verbose: true