From cb5cd3ee16a62ac14838fb808fd71493a2a542d4 Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Tue, 27 Aug 2024 22:03:15 -0400 Subject: [PATCH] workflows: add CI --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 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 00000000..86de7a26 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Format + run: cargo fmt && git diff --exit-code + + - name: Lint + run: cargo clippy -- -D warnings + + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Test + run: cargo test