Skip to content

Commit

Permalink
attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
Szegoo committed Sep 2, 2023
1 parent 4a2f7c5 commit dde83a9
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit dde83a9

Please sign in to comment.