From 441d3823e1b6c07a4c4fe0cfaad1f801ea365e35 Mon Sep 17 00:00:00 2001 From: Narthana Epa Date: Sat, 22 Jul 2023 18:39:14 +1000 Subject: [PATCH] Add github-actions --- .github/workflows/ci.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 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..b62cbc5 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,31 @@ +on: [push, pull_request] +name: Clippy +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + - run: cargo build --verbose + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + - run: cargo test --verbose + clippy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + components: clippy + - uses: actions-rs/clippy-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + args: --all-features