Merge pull request #18 from GiganticMinecraft/renovate/docker-build-p… #74
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |