From b1f27b702f0928cf2719ab9cebedf16b4f1d7f6a Mon Sep 17 00:00:00 2001 From: Lol3rrr Date: Wed, 16 Oct 2024 13:51:22 +0200 Subject: [PATCH] Add a test workflow --- .github/workflows/test.yaml | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..908e2a5 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,38 @@ +name: Testing/Linting + +on: + push: + +jobs: + test: + strategy: + matrix: + crate: [analysis, backend] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install latest nightly + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true + - name: Run Tests + run: cargo test -p ${{ matrix.crate }} + + lint: + runs-on: ubuntu-latest + strategy: + matrix: + crate: [analysis, backend] + steps: + - uses: actions/checkout@v4 + - name: Install latest nightly + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true + components: rustfmt, clippy + - name: Run Clippy + run: cargo clippy -p ${{ matrix.crate }} + - name: Run formatting + run: cargo fmt --check -p ${{ matrix.crate }}