From 6a2fc67bd4f4d03853395eaed643462b31e8dec6 Mon Sep 17 00:00:00 2001 From: c272 Date: Tue, 7 May 2024 11:26:18 +0100 Subject: [PATCH] workflow(feat): Add CI workflow for unit tests. --- .github/workflows/unit_tests.yml | 35 ++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/unit_tests.yml diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml new file mode 100644 index 0000000..50c172f --- /dev/null +++ b/.github/workflows/unit_tests.yml @@ -0,0 +1,35 @@ +on: [push] + +name: unit_tests + +jobs: + check: + name: Rust project + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install latest nightly + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true + components: rust-src + - name: Run cargo check + uses: actions-rs/cargo@v1 + with: + command: check + + unit_tests: + needs: check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install latest nightly + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true + components: rust-src + - name: Run unit tests + run: bash ./test.sh + \ No newline at end of file