Skip to content

Commit

Permalink
add linting, formatting to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
friend0 committed Oct 27, 2024
1 parent f3cedd8 commit ffa2caa
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI

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

env:
CARGO_TERM_COLOR: always
Expand All @@ -16,8 +16,13 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Check formatting
run: cargo fmt -- --check

- name: Run Clippy (linting)
run: cargo clippy -- -D warnings

0 comments on commit ffa2caa

Please sign in to comment.