From c70d570a8e73b99bb10b0e363befd30a50e39837 Mon Sep 17 00:00:00 2001 From: lapla-cogito Date: Tue, 13 Feb 2024 16:49:23 +0900 Subject: [PATCH] Add CI --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 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..8bf854f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: CI for cattleya + +on: + push: + branches: + - main + pull_request: + types: [opened, synchronize, reopened] + +jobs: + cargo-test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Rust-toolchain + uses: dtolnay/rust-toolchain@stable + with: + components: clippy + - name: Run clippy + uses: giraffate/clippy-action@v1 + with: + reporter: 'github-pr-review' + github_token: ${{ secrets.GITHUB_TOKEN }} + - name: Run tests + run: cargo test