Merge pull request #48 from SiaFoundation/dependabot/cargo/all-depend… #184
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: Main | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Environment | |
run: | | |
rustup update stable | |
rustup target add wasm32-unknown-unknown | |
- name: Build for wasm | |
# Check if the library target compiles. This will still allow for using | |
# non-wasm functionality in tests and benchmarks but guarantees that | |
# consumers of the library can use it to generate wasm bindings. | |
run: cargo check --target wasm32-unknown-unknown --lib | |
- name: Rustfmt | |
run: cargo fmt --all -- --check | |
- name: Clippy | |
run: cargo clippy -- -D warnings | |
- name: Test | |
run: cargo test |