From 0c230c361c3628d65522485a093fe7425067ac2c Mon Sep 17 00:00:00 2001 From: Josh Thomas Date: Mon, 9 Dec 2024 17:52:41 -0600 Subject: [PATCH] add test workflow (#9) --- .github/workflows/test.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..75ee881 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,26 @@ +name: test + +on: + pull_request: + push: + branches: [main] + workflow_call: + +concurrency: + group: test-${{ github.head_ref }} + cancel-in-progress: true + +env: + CARGO_TERM_COLOR: always + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Build + run: cargo build --verbose + + - name: Run tests + run: cargo test --verbose