From 0874a5dd1734cc5e1d7e3353330907be72697fae Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 20 Oct 2022 14:27:13 +0000 Subject: [PATCH] Run tests on every pull request --- .github/workflows/tests.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..be20421 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,30 @@ +name: "Continuous integration" + +on: + pull_request: + branches: + - main + workflow_call: + + +jobs: + cargotest: + steps: + - name: "Checkout repository" + uses: actions/checkout@v3 + + - name: "Install Rust toolchain" + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + + - name: "Run cargo clippy" + uses: actions-rs/clippy-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + args: --all-features + + - name: "Run cargo test" + uses: actions-rs/cargo@v1 + with: + command: test