Skip to content

Commit

Permalink
fix: split the ci into blocking and non_blocking parts
Browse files Browse the repository at this point in the history
  • Loading branch information
Yael-Starkware committed Oct 9, 2023
1 parent ab79bd4 commit f7b8c2b
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 28 deletions.
29 changes: 1 addition & 28 deletions .github/workflows/ci.yml → .github/workflows/ci_blocking.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: CI_BLOCKING

on:
push:
Expand Down Expand Up @@ -163,33 +163,6 @@ jobs:
- uses: Swatinem/rust-cache@v2
- run: cargo check --all-features

codecov:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Set-Up
run: |
sudo apt-get update
sudo apt-get install -y clang llvm libudev-dev protobuf-compiler
- 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 --output-path codecov.json
env:
SEED: 0
- name: Codecov
uses: codecov/codecov-action@v3
with:
verbose: true
fail_ci_if_error: true
version: "v0.1.15"

check-starknet_api-dependency:
runs-on: ubuntu-latest
if: github.base_ref == 'main' # this step is only run if the pr is to the main branch
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/ci_non_blocking.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI_NON_BLOCKING

on:
push:
branches: [main]
pull_request:
types:
- opened
- reopened
- synchronize
- auto_merge_enabled
- edited # for when the PR title is edited
merge_group:
types: [checks_requested]

jobs:
codecov:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Set-Up
run: |
sudo apt-get update
sudo apt-get install -y clang llvm libudev-dev protobuf-compiler
- 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 --output-path codecov.json
env:
SEED: 0
- name: Codecov
uses: codecov/codecov-action@v3
with:
verbose: true
fail_ci_if_error: true
version: "v0.1.15"

0 comments on commit f7b8c2b

Please sign in to comment.