From 4d59026271a6a9ab583a10eb862959ae78426c45 Mon Sep 17 00:00:00 2001 From: nikola-bozin-org Date: Thu, 25 Apr 2024 10:00:25 +0200 Subject: [PATCH] chore: add ci --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..416c867 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build-and-test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + + - name: Build + run: cargo build --verbose --release + + - name: Run tests + run: cargo test --verbose -- --nocapture \ No newline at end of file