Skip to content

Commit

Permalink
ci: ciを定義
Browse files Browse the repository at this point in the history
  • Loading branch information
rito528 committed Mar 24, 2024
1 parent 6b9e85a commit e85fcdc
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CheckCode
on:
push:

jobs:
fmt:
name: fmt check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup component add rustfmt
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt --all --check
working-directory: ./server

clippy:
name: clippy check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: LoliGothick/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
deny: warnings
working-directory: ./server

0 comments on commit e85fcdc

Please sign in to comment.