fix: prepare new release (#601) #1528
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: code quality | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
concurrency: | |
group: ${{ github.workflow }}-${{ (github.ref == 'refs/heads/main' && github.sha) || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
clippy_check: | |
runs-on: namespace-profile-standard-ubuntu22-amd64 | |
steps: | |
- name: clone code | |
uses: namespacelabs/nscloud-checkout-action@v5 | |
with: | |
submodules: recursive | |
- name: Install Protoc | |
run: sudo apt-get install -y protobuf-compiler | |
- name: install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
# If you update this, also update build.mjs | |
toolchain: nightly-2023-11-16 | |
override: true | |
- run: rustup component add clippy rustfmt | |
- name: lint | |
run: cargo clippy --features test_ci --exclude grit-wasm-bindings --workspace --locked -- -D warnings | |
- name: format | |
run: cargo fmt --all -- --check |