mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 10:56:29 +03:00
ci: pin rustfmt version
This commit is contained in:
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
@@ -10,26 +10,20 @@ env:
|
|||||||
RUSTFLAGS: -Dwarnings
|
RUSTFLAGS: -Dwarnings
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
lint:
|
||||||
fmt:
|
name: Rustfmt and Clippy
|
||||||
name: Rustfmt
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
RUSTUP_TOOLCHAIN: 1.67.1
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- run: cargo fmt --all -- --check
|
- name: Install rustfmt and clippy
|
||||||
|
run: rustup toolchain install $RUSTUP_TOOLCHAIN --component rustfmt --component clippy
|
||||||
run_clippy:
|
|
||||||
name: Clippy
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Install clippy
|
|
||||||
run: rustup toolchain install 1.67.1 --component clippy
|
|
||||||
- name: Cache rust cargo artifacts
|
- name: Cache rust cargo artifacts
|
||||||
uses: swatinem/rust-cache@v2
|
uses: swatinem/rust-cache@v2
|
||||||
|
- name: Run rustfmt
|
||||||
|
run: cargo fmt --all -- --check
|
||||||
- name: Run clippy
|
- name: Run clippy
|
||||||
env:
|
|
||||||
RUSTUP_TOOLCHAIN: 1.67.1
|
|
||||||
run: scripts/clippy.sh
|
run: scripts/clippy.sh
|
||||||
|
|
||||||
docs:
|
docs:
|
||||||
|
|||||||
Reference in New Issue
Block a user