From 6ebd5b8b09faa8326bc79ffc8aa3385da5a1e26e Mon Sep 17 00:00:00 2001 From: qazal Date: Tue, 11 Jun 2024 23:52:17 +0300 Subject: [PATCH] ci --- .github/workflows/test.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 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..fb8b7ae --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,22 @@ +name: Tests + +on: + push: + pull_request: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Check and build + run: | + cargo check + cargo build --release + + - name: Run tests + run: CI=1 cargo test