diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index fa9b871..10b0908 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,23 +2,24 @@ name: Rust on: push: - branches: [ "master" ] + branches: ["master"] pull_request: - branches: [ "master" ] + branches: ["master"] env: CARGO_TERM_COLOR: always jobs: - build: - + ci: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose - - name: Check formatting - run: cargo fmt --check --verbose + - uses: actions/checkout@v4 + - name: Check formatting + run: cargo fmt --check --verbose + - name: Build + run: cargo build --verbose + - name: Check linting + run: cargo clippy -- -D warnings + - name: Run tests + run: cargo test --verbose