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