Skip to content

Commit

Permalink
Add: checkワークフローを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi committed Sep 10, 2023
1 parent fc0b0ed commit a8627c7
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Run cargo clippy and cargo fmt

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

jobs:
check:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Rust
uses: dtolnay/rust-toolchain@master
- name: Run cargo clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Run cargo fmt
run: cargo fmt --all -- --check

0 comments on commit a8627c7

Please sign in to comment.