From 49d101f487f4f3d6e8d5ac96bf7a5e0598b139ba Mon Sep 17 00:00:00 2001 From: Armin Sander Date: Thu, 20 Jun 2024 11:02:51 +0200 Subject: [PATCH] Add qa workflow --- .github/workflows/qa.yaml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/qa.yaml diff --git a/.github/workflows/qa.yaml b/.github/workflows/qa.yaml new file mode 100644 index 0000000..941cc8c --- /dev/null +++ b/.github/workflows/qa.yaml @@ -0,0 +1,36 @@ +name: 'qa' +on: [pull, push-request] + +jobs: + tests: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-22.04, windows-2022, macos-14] + + steps: + - uses: actions/checkout@v4 + with: + submodules: true + + - name: 'Install toolchain' + uses: dtolnay/rust-toolchain@stable + + - name: 'Test' + run: cargo test --all-targets + + formatting: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + with: + submodules: true + + - name: 'Install toolchain' + uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt + + - name: 'Check Formatting' + run: | + cargo fmt -- --check