From e6a3eb34d3f45d0db6f31e8c76c8c9a8b4f58beb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20G=C3=B6rgens?= Date: Mon, 29 Apr 2024 12:59:00 +0800 Subject: [PATCH] Create CI workflow --- .github/workflows/rust.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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..b4d9512 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,29 @@ +name: Rust + +on: + push: + branches: [ "main" ] + pull_request: + branches: + - "**" + +env: + CARGO_TERM_COLOR: always + +jobs: + test: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Check + run: cargo check + - name: Clippy + run: cargo clippy + - name: Format + run: cargo fmt --all --check + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose