From c470f8a3bbd84074924a7eaab8260ce5fd8542e8 Mon Sep 17 00:00:00 2001 From: teddav Date: Wed, 20 Mar 2024 22:11:26 +0100 Subject: [PATCH] split ci tests workflow in smaller jobs --- .github/workflows/tests.yml | 70 +++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 00000000..b2f2946a --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,70 @@ +name: Tests + +on: + push: + branches: ["*"] + pull_request: + branches: ["*"] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +env: + CARGO_TERM_COLOR: always + +jobs: + test-zk-prover: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install solc + run: (hash svm 2>/dev/null || cargo install --version 0.2.23 svm-rs) && svm install 0.8.20 && solc --version + + - name: Test Zk Prover + run: | + cd zk_prover + cargo test --release --features dev-graph -- --nocapture + + test-zk-prover-examples: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install solc + run: (hash svm 2>/dev/null || cargo install --version 0.2.23 svm-rs) && svm install 0.8.20 && solc --version + + - name: Test Zk Prover examples + run: | + cd zk_prover + cargo run --release --example gen_inclusion_verifier + cargo run --release --example gen_commitment + cargo run --release --example gen_inclusion_proof + cargo run --release --example nova_incremental_verifier + + test-backend: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install solc + run: (hash svm 2>/dev/null || cargo install --version 0.2.23 svm-rs) && svm install 0.8.20 && solc --version + - name: Install Foundry + uses: foundry-rs/foundry-toolchain@v1 + + - name: Test backend + run: | + cd backend + cargo test --release -- --nocapture + + test-backend-examples: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install solc + run: (hash svm 2>/dev/null || cargo install --version 0.2.23 svm-rs) && svm install 0.8.20 && solc --version + - name: Install Foundry + uses: foundry-rs/foundry-toolchain@v1 + + - name: Test backend example + run: | + cd backend + cargo run --release --example summa_solvency_flow