Skip to content

Commit

Permalink
nightly -> MSRV, add build step before tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeHartnell committed May 3, 2023
1 parent 9c37db1 commit 9dfa9f7
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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"
Expand All @@ -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

0 comments on commit 9dfa9f7

Please sign in to comment.