Skip to content

Commit

Permalink
chore(codecov): move to .github folder
Browse files Browse the repository at this point in the history
  • Loading branch information
0xfourzerofour committed Sep 27, 2023
1 parent afcb9e2 commit 600d366
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 54 deletions.
53 changes: 53 additions & 0 deletions .github/codecov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
on:
push:
branches:
- main
pull_request:


env:
CARGO_TERM_COLOR: always

name: unit
jobs:
test:
name: unit-tests
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: llvm-tools-preview

- name: Install protobuf
run: sudo apt-get install -y protobuf-compiler

- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Install latest nextest release
uses: taiki-e/install-action@nextest

- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov

- name: Run tests
run: |
cargo llvm-cov nextest --lcov --output-path lcov.info \
--locked --all-features --workspace
- name: Upload coverage data to codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
flags: unit-tests

54 changes: 0 additions & 54 deletions .github/workflows/codecov.yaml

This file was deleted.

0 comments on commit 600d366

Please sign in to comment.