Update README.md improving git explanation (#137) #264
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: ci | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
rust: | |
- stable | |
- beta | |
- nightly | |
- 1.70.0 # minimum supported version | |
continue-on-error: ${{ matrix.rust == 'nightly' }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: ${{ matrix.rust}} | |
components: rustfmt | |
- name: Build | |
run: cargo build | |
- name: Cargo Test | |
run: cargo test --all | |
- name: Format (fix with `cargo fmt`) | |
run: cargo fmt -- --check | |
- name: Run unit-tests | |
run: tests/run_all.sh | |
shell: bash | |
clippy_check: | |
name: Clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
components: clippy | |
- run: cargo clippy --all-features |