Skip to content

Commit

Permalink
add lint action
Browse files Browse the repository at this point in the history
  • Loading branch information
LasseHels committed Nov 3, 2024
1 parent 5a035d4 commit 61f3b55
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 7 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on:
workflow_call:

jobs:
test:
name: Test
permissions:
contents: read
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: '1.82.0'
components: 'clippy'
- name: Cache Rust toolchain
uses: Swatinem/[email protected]
- name: Test
run: make lint
7 changes: 3 additions & 4 deletions .github/workflows/pr-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ jobs:
test:
name: Test
uses: ./.github/workflows/test.yml
# TODO enable lint.
# lint:
# name: Lint
# uses: ./.github/workflows/lint.yml
lint:
name: Lint
uses: ./.github/workflows/lint.yml
3 changes: 0 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
on:
workflow_call:

env:
RUST_VERSION: '1.82.0'

jobs:
test:
name: Test
Expand Down

0 comments on commit 61f3b55

Please sign in to comment.