From 600d366696adf6e66dfa45d67cd1c7697eccbb57 Mon Sep 17 00:00:00 2001 From: 0xfourzerofour Date: Wed, 27 Sep 2023 15:46:39 -0400 Subject: [PATCH] chore(codecov): move to .github folder --- .github/codecov.yaml | 53 +++++++++++++++++++++++++++++++++ .github/workflows/codecov.yaml | 54 ---------------------------------- 2 files changed, 53 insertions(+), 54 deletions(-) create mode 100644 .github/codecov.yaml delete mode 100644 .github/workflows/codecov.yaml diff --git a/.github/codecov.yaml b/.github/codecov.yaml new file mode 100644 index 000000000..5dcf3aa62 --- /dev/null +++ b/.github/codecov.yaml @@ -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 + diff --git a/.github/workflows/codecov.yaml b/.github/workflows/codecov.yaml deleted file mode 100644 index aa7b9fc7c..000000000 --- a/.github/workflows/codecov.yaml +++ /dev/null @@ -1,54 +0,0 @@ -coverage: - status: - patch: off - project: - default: - threshold: null - informational: true -github_checks: - annotations: false -comment: - layout: "reach, files, flags, components" - require_changes: true -component_management: - individual_components: - - component_id: rundler_binary - name: rundler binary - paths: - - bin/** - - component_id: builder - name: builder - paths: - - crates/builder/** - - component_id: dev - name: dev - paths: - - crates/dev/** - - component_id: pool - name: pool - paths: - - crates/pool/** - - component_id: provider - name: provider - paths: - - crates/provider/** - - component_id: rpc - name: rpc - paths: - - crates/rpc/** - - component_id: sim - name: sim - paths: - - crates/sim/** - - component_id: tasks - name: tasks - paths: - - crates/tasks/** - - component_id: types - name: types - paths: - - crates/types/** - - component_id: utils - name: utils - paths: - - crates/utils/**