[EPROD-967] Implement Upgrade Management Canister #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- README.md | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
name: Clippy, fmt and tests | |
jobs: | |
test: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install rust toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
components: clippy, rustfmt | |
target: wasm32-unknown-unknown, i686-unknown-linux-gnu | |
- name: machine setup | |
run: | | |
cargo install ic-wasm | |
- name: rustfmt | |
run: | | |
cargo fmt --all --check | |
- name: clippy | |
run: | | |
cargo clippy --all-features --all-targets -- -D warnings | |
- name: build | |
run: | | |
./scripts/build.sh | |
- name: test | |
run: | | |
./scripts/test.sh | |
- name: test i686-unknown-linux-gnu | |
run: | | |
sudo apt install gcc-multilib | |
./scripts/test.sh --target i686-unknown-linux-gnu |