From 82f2d825abadcda1ae69cfdce02c064bd68046c7 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Wed, 13 Sep 2023 17:34:32 +0530 Subject: [PATCH] chore(actions): include CI action for checks I just yanked this from https://github.com/filiptibell/lune/blob/df8570b16eb30378b927277fefc0ec6ac38611af/.github/workflows/ci.yaml. --- .github/ci.yaml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/ci.yaml diff --git a/.github/ci.yaml b/.github/ci.yaml new file mode 100644 index 0000000..b871d69 --- /dev/null +++ b/.github/ci.yaml @@ -0,0 +1,34 @@ +name: CI + +on: + push: + pull_request: + workflow_dispatch: + +jobs: + ci: + name: CI + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + with: + submodules: true + + - name: Install Rust + uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt, clippy + + - name: Rustfmt + run: cargo fmt -- --check + + - name: Build + run: cargo build --locked + + - name: Clippy + run: cargo clippy + + - name: Test + run: cargo test --lib