Bump version to 0.2.1 #29
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: Tests and checks | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
test-linux: | |
name: Run tests on linux (ubuntu) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup rust toolchain | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: 1.80.1 | |
- name: Compile | |
run: cargo check | |
- name: Run tests | |
run: cargo test -- --nocapture | |
test-macos: | |
name: Run tests on MacOS | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup rust toolchain | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: 1.80.1 | |
- name: Compile | |
run: cargo check | |
- name: Run tests | |
run: cargo test -- --nocapture | |
check-linux: | |
name: Run checks on linux (ubuntu) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup rust toolchain | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: 1.80.1 | |
components: clippy, rustfmt | |
- name: Check formatting | |
run: cargo fmt -- --check | |
- name: Lint | |
run: cargo clippy -- -D warnings | |
check-macos: | |
name: Run checks on MacOS | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup rust toolchain | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: 1.80.1 | |
components: clippy, rustfmt | |
- name: Check formatting | |
run: cargo fmt -- --check | |
- name: Lint | |
run: cargo clippy -- -D warnings |