From bad6165346f8b504662b3fa993791e9564a542cf Mon Sep 17 00:00:00 2001 From: seth Date: Tue, 30 May 2023 01:43:34 -0400 Subject: ci: separate workflows more + add more tests --- .github/workflows/lint.yaml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/lint.yaml (limited to '.github/workflows/lint.yaml') diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 0000000..550e406 --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,42 @@ +name: lint project + +on: + workflow_call: + workflow_dispatch: + +permissions: + checks: write + +jobs: + cargo-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + + - name: run cargo check + uses: actions-rs/cargo@v1 + with: + command: check + + clippy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + components: clippy + + - uses: actions-rs/clippy-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + args: --all-features -- cgit v1.2.3