Skip to content

Commit

Permalink
Add lint to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bircni committed Aug 15, 2024
1 parent c7fb51a commit ce69bd2
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 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:

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: Build
run: cargo build --verbose
- name: Check linting
run: cargo clippy -- -D warnings
- name: Run tests
run: cargo test --verbose
- name: Check formatting
run: cargo fmt --check --verbose

0 comments on commit ce69bd2

Please sign in to comment.