From 342ff2386b454900392827f55234b39b7c6ea5c2 Mon Sep 17 00:00:00 2001 From: Daniel Zduniak Date: Tue, 19 Sep 2023 18:05:56 +0200 Subject: [PATCH] Add rust.yml workflow. --- .github/workflows/rust.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..e6e7ba2 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,25 @@ +name: build + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Build + run: cargo build --verbose + + - name: Run tests + run: cargo test --verbose