From d6023ac9321d344e14100c14c813a7e9dcb07657 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?i=C3=B1aki=20llorens?= Date: Tue, 27 Aug 2024 12:06:55 -0300 Subject: [PATCH] Add CI that runs tests --- .github/workflows/tests.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 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..ab981b0 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,33 @@ +name: tests + +on: + push: + branches: + - '**' + pull_request: + branches: + - '**' + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + profile: minimal + override: true + + - name: Run tests + run: cargo test + + - name: Run clippy + run: cargo clippy --all-targets --all-features -- -D warnings + + - name: Format code + run: cargo fmt -- --check