From fe412613a4170e9fd8a8b62d6aafefa464d69bc9 Mon Sep 17 00:00:00 2001 From: Nander Stabel Date: Thu, 4 Apr 2024 21:25:27 +0200 Subject: [PATCH] chore: add `format-lint-test` workflow --- .github/workflows/format-lint-test.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/format-lint-test.yaml diff --git a/.github/workflows/format-lint-test.yaml b/.github/workflows/format-lint-test.yaml new file mode 100644 index 00000000..5f48f5f9 --- /dev/null +++ b/.github/workflows/format-lint-test.yaml @@ -0,0 +1,25 @@ +name: Format, Lint, Test + +on: + push: + branches: ["dev"] + pull_request: + branches: ["dev"] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - uses: dtolnay/rust-toolchain@stable + + - name: Format + run: cargo fmt --all -- --check + + - name: Lint + run: cargo clippy --all-targets --all-features -- -D warnings + + - name: Test + run: cargo test --workspace