From 45f36b57f98cac9b4ab1ab69f8a13e92dd8ff244 Mon Sep 17 00:00:00 2001 From: Putta Khunchalee Date: Thu, 11 Apr 2024 23:43:51 +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..54073e9 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,19 @@ +name: CI +on: + pull_request: + branches: + - main + push: + branches: + - main +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Checkout source + uses: actions/checkout@v4 + - name: Check Rust styles + run: cargo fmt --check + - name: Lint + run: cargo clippy -- -D warnings