Improve README.md #6
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: CI | |
on: [push, pull_request] | |
jobs: | |
fmt: | |
name: rustfmt / stable | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt | |
- name: Rust rustfmt | |
run: cargo fmt --all -- --check | |
clippy: | |
name: clippy / stable | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install augeas | |
run: | | |
DEBIAN_FRONTEND=noninteractive sudo apt-get update | |
DEBIAN_FRONTEND=noninteractive sudo apt-get -y install libaugeas-dev | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: clippy | |
- name: Run clippy | |
run: cargo clippy --locked -- -D warnings | |
test: | |
name: test / ${{ matrix.name }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- name: stable | |
rust: stable | |
- name: beta | |
rust: beta | |
- name: nightly | |
rust: nightly | |
- name: 1.77.0 | |
rust: 1.77.0 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install augeas | |
run: | | |
DEBIAN_FRONTEND=noninteractive sudo apt-get update | |
DEBIAN_FRONTEND=noninteractive sudo apt-get -y install libaugeas-dev | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust }} | |
- name: Run tests | |
run: cargo test --locked --all |