diff --git a/.github/workflows/basic.yml b/.github/workflows/basic.yml index f546418d..163c4180 100644 --- a/.github/workflows/basic.yml +++ b/.github/workflows/basic.yml @@ -12,18 +12,27 @@ jobs: - name: Checkout sources uses: actions/checkout@v2 - - name: Install latest nightly toolchain + - name: Install toolchain uses: actions-rs/toolchain@v1 with: profile: minimal - toolchain: nightly + toolchain: 1.65.0 target: wasm32-unknown-unknown override: true + - name: Run build + uses: actions-rs/cargo@v1 + with: + toolchain: 1.65.0 + command: build + args: --workspace + env: + RUST_BACKTRACE: 1 + - name: Run tests uses: actions-rs/cargo@v1 with: - toolchain: nightly + toolchain: 1.65.0 command: test args: --workspace env: @@ -32,7 +41,7 @@ jobs: - name: Compile WASM contract uses: actions-rs/cargo@v1 with: - toolchain: nightly + toolchain: 1.65.0 command: wasm env: RUSTFLAGS: "-C link-arg=-s" @@ -44,24 +53,24 @@ jobs: - name: Checkout sources uses: actions/checkout@v2 - - name: Install stable toolchain + - name: Install toolchain uses: actions-rs/toolchain@v1 with: profile: minimal - toolchain: nightly + toolchain: 1.65.0 override: true components: rustfmt, clippy - name: Run cargo fmt uses: actions-rs/cargo@v1 with: - toolchain: nightly + toolchain: 1.65.0 command: fmt args: --all -- --check - name: Run cargo clippy uses: actions-rs/cargo@v1 with: - toolchain: nightly + toolchain: 1.65.0 command: clippy args: --all-targets -- -D warnings