From dde83a9b8f61c2db1b30ac4d8db8c23f99ab8091 Mon Sep 17 00:00:00 2001 From: Sergej Sakac Date: Sat, 2 Sep 2023 07:46:38 +0200 Subject: [PATCH] attempt --- .github/workflows/test.yml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d78b8e2..eca305e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,10 +18,9 @@ jobs: - name: Install & display rust toolchain run: | rustup show - rustup toolchain nightly-1.72 install nightly - rustup component add rust-src --toolchain nightly-1.72-x86_64-unknown-linux-gnu - rustup component add clippy --toolchain nightly-1.72-x86_64-unknown-linux-gnu - cargo install --force --locked cargo-contract + rustup toolchain install nightly + rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu + rustup component add clippy --toolchain nightly-x86_64-unknown-linux-gnu rustup show - name: Check targets are installed correctly @@ -43,17 +42,21 @@ jobs: - name: Unit test run: cargo test - e2etest: - needs: install + ink-e2e: + needs: [install, unittest] runs-on: ubuntu-latest steps: + - name: Use cashed cargo + uses: actions/cache@v3 + with: + path: ~/.cargo + key: ${{ runner.os }}-rust-${{ hashFiles('rust-toolchain.toml') }} + - name: Checkout the source code uses: actions/checkout@v3 - - name: E2e test - run: | - cargo clean - cargo test --features e2e-tests + - name: Ink e2e test + run: cargo test --features e2e-tests format: needs: install