From 4754dcbb4dd403b6d08b715c8c75fd1fc0bee613 Mon Sep 17 00:00:00 2001 From: myl7 Date: Sun, 9 Jul 2023 21:06:45 +0800 Subject: [PATCH] Add CI --- .github/workflows/ci.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..65e5888 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,18 @@ +name: CI +on: + push: + branches: [main] + pull_request: + branches: [main] +jobs: + test: + name: Test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt, clippy + - run: cargo test --all-features + - run: cargo fmt --check + - run: cargo clippy --all-features -- --no-deps -Dwarnings