Use workspace dependencies #23
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
name: Test | |
on: | |
pull_request: | |
branches: | |
- master | |
push: | |
branches: | |
- master | |
jobs: | |
clean-up-actions: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
# Only cancel non-master branch runs | |
if: ${{ github.ref != 'refs/heads/master' }} | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
test: | |
runs-on: ubuntu-latest | |
needs: clean-up-actions | |
defaults: | |
run: | |
working-directory: lib/stable-asset | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install toolchain | |
uses: dtolnay/rust-toolchain@nightly | |
with: | |
toolchain: nightly-2023-04-15 | |
components: rustfmt | |
target: wasm32-unknown-unknown | |
- name: Setup cmake | |
uses: jwlawson/[email protected] | |
- name: Check format | |
run: cargo fmt --all -- --check | |
- name: Install clippy | |
run: rustup component add clippy | |
- name: Run clippy | |
run: cargo clippy -- -D warnings | |
- name: Run test | |
run: cargo test |