diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 59590c0..b21a8a8 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -10,13 +10,34 @@ env: CARGO_TERM_COLOR: always jobs: - build: + check: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Check + run: cargo check --verbose + + format: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Format + run: cargo fmt -- --check + + clippy: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Clippy + run: cargo clippy -- -D warnings + + test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo run + - name: Test + run: cargo run \ No newline at end of file