diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml new file mode 100644 index 0000000..b3eebf9 --- /dev/null +++ b/.github/workflows/build_test.yml @@ -0,0 +1,23 @@ +name: ci + +on: + push: + branches: + - "main" + pull_request: + branches: + - "main" + +jobs: + test: + name: Test + runs-on: ubuntu-22.04 + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Build + run: cargo build + - name: Run clippy + run: cargo clippy --all-targets --all-features + - name: Run tests + run: cargo test --all-targets --all-features