mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-03 22:03:06 +00:00
ci workflow
This commit is contained in:
parent
0fd85820a3
commit
29b8da5dbe
29
.github/workflows/ci.yml
vendored
29
.github/workflows/ci.yml
vendored
@ -28,7 +28,34 @@ jobs:
|
|||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
profile: minimal
|
||||||
toolchain: stable
|
toolchain: nightly
|
||||||
override: true
|
override: true
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
- run: cargo build
|
- run: cargo build
|
||||||
|
|
||||||
|
lint:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
platform: [ ubuntu-latest ]
|
||||||
|
runs-on: ${{ matrix.platform }}
|
||||||
|
timeout-minutes: 60
|
||||||
|
|
||||||
|
name: lint - ${{ matrix.crate }} - ${{ matrix.platform }}
|
||||||
|
steps:
|
||||||
|
- name: Checkout sources
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Install stable toolchain
|
||||||
|
uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
profile: minimal
|
||||||
|
toolchain: nightly
|
||||||
|
override: true
|
||||||
|
components: rustfmt, clippy
|
||||||
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
- name: cargo fmt
|
||||||
|
if: success() || failure()
|
||||||
|
run: cargo fmt -- --check
|
||||||
|
- name: cargo clippy
|
||||||
|
if: success() || failure()
|
||||||
|
run: |
|
||||||
|
cargo clippy --release -- -D warnings
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user