Merge pull request #9 from Concordium/dev #38
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: Lint and Test | |
on: | |
push: | |
branches: main | |
pull_request: | |
env: | |
rust_version: "1.72" | |
jobs: | |
lint-and-test: | |
runs-on: macos-13 | |
steps: | |
# TODO: Consider adding caching. | |
- name: Setup Rust | |
run: | | |
rustup default "${{env.rust_version}}" | |
rustup component add rustfmt clippy | |
- name: Check out sources | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Check formatting | |
run: cargo fmt --check | |
- name: Run linter | |
run: cargo clippy | |
- name: Run tests | |
run: cargo test |