-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): move codecov to main ci (#124)
- Loading branch information
1 parent
2e5ca21
commit 4e12bc2
Showing
3 changed files
with
29 additions
and
72 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -190,3 +190,32 @@ jobs: | |
ref: ${{github.ref}} | ||
timeout: 1200 | ||
ignored: "code-review/reviewable" | ||
|
||
codecov: | ||
runs-on: starkware-ubuntu-latest-medium | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/install_rust | ||
- name: Set-Up | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y clang llvm libudev-dev | ||
- uses: Noelware/[email protected] | ||
with: | ||
version: ${{env.PROTOC_VERSION}} | ||
|
||
- name: Install cargo-llvm-cov | ||
uses: taiki-e/install-action@cargo-llvm-cov | ||
- uses: Swatinem/rust-cache@v2 | ||
- run: npm install -g [email protected] | ||
- name: Coverage | ||
run: cargo llvm-cov --codecov -r --output-path codecov.json | ||
env: | ||
SEED: 0 | ||
- name: Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
verbose: true | ||
fail_ci_if_error: true | ||
version: "v0.1.15" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,35 +105,6 @@ jobs: | |
env: | ||
SEED: 0 | ||
codecov: | ||
runs-on: starkware-ubuntu-latest-medium | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/install_rust | ||
- name: Set-Up | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y clang llvm libudev-dev | ||
- uses: Noelware/[email protected] | ||
with: | ||
version: ${{env.PROTOC_VERSION}} | ||
|
||
- name: Install cargo-llvm-cov | ||
uses: taiki-e/install-action@cargo-llvm-cov | ||
- uses: Swatinem/rust-cache@v2 | ||
- run: npm install -g [email protected] | ||
- name: Coverage | ||
run: cargo llvm-cov --codecov -r --output-path codecov.json | ||
env: | ||
SEED: 0 | ||
- name: Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
verbose: true | ||
fail_ci_if_error: true | ||
version: "v0.1.15" | ||
|
||
check-starknet_api-dependency: | ||
runs-on: starkware-ubuntu-latest-small | ||
if: github.base_ref == 'main' # this step is only run if the pr is to the main branch | ||
|