Skip to content

Commit

Permalink
Merge pull request #158 from lumeohq/dmitry/ci-housekeeping
Browse files Browse the repository at this point in the history
Housekeeping
  • Loading branch information
DmitrySamoylov committed Apr 17, 2024
2 parents 0834ded + 6da2e8c commit 80050d9
Show file tree
Hide file tree
Showing 88 changed files with 813 additions and 1,350 deletions.
54 changes: 29 additions & 25 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,36 @@ on:

jobs:
build:
runs-on: ubuntu-latest
continue-on-error: true

steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Run tests
run: cargo test

clippy:
runs-on: ubuntu-latest
continue-on-error: true

steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Catch common mistakes
run: cargo clippy --workspace --tests --all-targets -- -D warnings

rustfmt:
runs-on: ubuntu-latest
continue-on-error: true

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
profile: minimal
components: rustfmt, clippy
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
- name: Check formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
- name: Catch common mistakes
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets -- -D warnings
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Check formatting
run: cargo fmt -- --check
1 change: 1 addition & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use_small_heuristics = "Max"
Loading

0 comments on commit 80050d9

Please sign in to comment.