Skip to content

Commit

Permalink
Merge pull request #28 from bircni/patch01
Browse files Browse the repository at this point in the history
Add lint to workflow
  • Loading branch information
ItsEthra authored Sep 26, 2024
2 parents 3fa49d1 + 7c8eb39 commit c151a8f
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,24 @@ name: Rust

on:
push:
branches: [ "master" ]
branches: ["master"]
pull_request:
branches: [ "master" ]
branches: ["master"]

env:
CARGO_TERM_COLOR: always

jobs:
build:

ci:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Check formatting
run: cargo fmt --check --verbose
- uses: actions/checkout@v4
- name: Check formatting
run: cargo fmt --check --verbose
- name: Build
run: cargo build --verbose
- name: Check linting
run: cargo clippy -- -D warnings
- name: Run tests
run: cargo test --verbose

0 comments on commit c151a8f

Please sign in to comment.