From f29649df4daf7ba831c853b09e866bc268d638cb Mon Sep 17 00:00:00 2001 From: Putta Khunchalee Date: Mon, 26 Feb 2024 00:06:18 +0700 Subject: [PATCH] Adds CI --- .github/workflows/ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 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..c918c7b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,19 @@ +name: CI +on: + push: + branches: + - main + pull_request: + branches: + - main +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Check out source + uses: actions/checkout@v4 + - name: Check Rust styles + run: cargo fmt --check + - name: Lint + run: cargo clippy -- -D warnings