Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ jobs:
if: needs.detect_changes.outputs.rust_unit_tests == 'true'
timeout-minutes: 20
runs-on: 'ubuntu-latest'
permissions:
contents: read
actions: write
steps:
- uses: actions/checkout@v6

Expand Down Expand Up @@ -162,6 +165,12 @@ jobs:
- name: Run Unit Tests
run: 'cargo test --lib && cargo test --doc'

- name: Cancel workflow on failure
if: failure()
run: gh run cancel ${{ github.run_id }}
env:
GH_TOKEN: ${{ github.token }}

rust_integration_tests:
needs: [detect_changes]
if: needs.detect_changes.outputs.rust_integration_tests == 'true'
Expand Down Expand Up @@ -337,6 +346,9 @@ jobs:
if: needs.detect_changes.outputs.contracts == 'true'
timeout-minutes: 15
runs-on: 'ubuntu-latest'
permissions:
contents: read
actions: write
steps:
- name: 'Check out the repo'
uses: 'actions/checkout@v6'
Expand Down Expand Up @@ -370,6 +382,12 @@ jobs:
echo "## Test results" >> $GITHUB_STEP_SUMMARY
echo "✅ Passed" >> $GITHUB_STEP_SUMMARY

- name: Cancel workflow on failure
if: failure()
run: gh run cancel ${{ github.run_id }}
env:
GH_TOKEN: ${{ github.token }}

test_net:
needs: [detect_changes]
if: needs.detect_changes.outputs.net == 'true'
Expand Down Expand Up @@ -520,6 +538,9 @@ jobs:
if: needs.detect_changes.outputs.build_enclave_cli == 'true'
timeout-minutes: 20
runs-on: 'ubuntu-latest'
permissions:
contents: read
actions: write
steps:
- uses: actions/checkout@v6
with:
Expand Down Expand Up @@ -549,6 +570,12 @@ jobs:
path: ~/.cargo/bin/enclave
retention-days: 1

- name: Cancel workflow on failure
if: failure()
run: gh run cancel ${{ github.run_id }}
env:
GH_TOKEN: ${{ github.token }}

crisp_unit:
needs: [detect_changes, build_crisp_sdk]
if: needs.detect_changes.outputs.crisp == 'true'
Expand Down Expand Up @@ -744,6 +771,9 @@ jobs:
if: needs.detect_changes.outputs.build_circuits == 'true'
timeout-minutes: 30
runs-on: 'ubuntu-latest'
permissions:
contents: read
actions: write
steps:
- uses: actions/checkout@v6
with:
Expand Down Expand Up @@ -808,6 +838,12 @@ jobs:
retention-days: 1
if-no-files-found: error

- name: Cancel workflow on failure
if: failure()
run: gh run cancel ${{ github.run_id }}
env:
GH_TOKEN: ${{ github.token }}

zk_prover_e2e:
needs: [detect_changes, build_circuits]
if: needs.detect_changes.outputs.zk == 'true'
Expand Down
Loading