Added fmt and clippy workflow from Reveaal #37
Workflow file for this run
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: Check formatting | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
permissions: | |
contents: read | |
jobs: | |
fmt: | |
name: cargo fmt check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run fmt lint | |
run: cargo fmt --all -- --check | |
clippy: | |
name: Clippy lint and check | |
runs-on: ubuntu-latest | |
steps: | |
- run: sudo apt-get install protobuf-compiler | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- uses: Swatinem/rust-cache@v2 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
cache: yarn | |
cache-dependency-path: 'Ecdar-GUI-Web/yarn.lock' | |
- name: Install yarn dependencies | |
run: cd Ecdar-GUI-Web && yarn install | |
- name: Run clippy lint | |
run: cargo clippy --all-targets -- -D warnings |