diff --git a/.github/workflows/ci.yml b/.github/workflows/ci_blocking.yml similarity index 86% rename from .github/workflows/ci.yml rename to .github/workflows/ci_blocking.yml index d13a246bff..eeadf09d8b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci_blocking.yml @@ -1,4 +1,4 @@ -name: CI +name: CI_BLOCKING on: push: @@ -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 ganache@7.4.3 - - 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 diff --git a/.github/workflows/ci_non_blocking.yml b/.github/workflows/ci_non_blocking.yml new file mode 100644 index 0000000000..928cf222da --- /dev/null +++ b/.github/workflows/ci_non_blocking.yml @@ -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 ganache@7.4.3 + - 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" \ No newline at end of file