Skip to content
This repository has been archived by the owner on Jan 11, 2025. It is now read-only.

Commit

Permalink
Merge pull request #4 from Kiwifuit/meta/workflow/test
Browse files Browse the repository at this point in the history
- made workflow ignore file-dependent crates `mparse` and `modparser`
- added a clippy workflow
  • Loading branch information
Kiwifuit authored Aug 19, 2024
2 parents f62f695 + 3623a4c commit 36e7644
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 4 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Clippy
# didnt write this btw 🤡

on:
pull_request:
branches: [ "main" ]

jobs:
clippy:
name: Code Lint
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1 #@v1
with:
profile: minimal
toolchain: stable
components: clippy
override: true

- name: Run rust-clippy
run:
cargo clippy
--all-features
--message-format=json

10 changes: 6 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: Rust
name: Rust code testing

on:
- push
- pull_request
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always
Expand All @@ -15,4 +17,4 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Run tests
run: cargo test --verbose
run: cargo test --workspace --exclude '*parse*' --verbose

0 comments on commit 36e7644

Please sign in to comment.