Skip to content

Commit e850902

Browse files
authored
refactor: switch to caslex (#32)
* refactor: switch to caslex
1 parent 2728fee commit e850902

31 files changed

Lines changed: 194 additions & 1862 deletions

.github/workflows/ci.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,17 @@ jobs:
1313
lint:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- name: Checkout repository
17-
uses: actions/checkout@v2
18-
19-
- name: Lint
20-
run: |
21-
cargo clippy -- -D warnings
16+
- uses: actions/checkout@v4
17+
- uses: dtolnay/rust-toolchain@nightly
18+
with:
19+
components: clippy, rustfmt
20+
- uses: Swatinem/rust-cache@v2
21+
with:
22+
save-if: ${{ github.ref == 'refs/heads/main' }}
23+
- name: Check
24+
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
25+
- name: rustfmt
26+
run: cargo +nightly fmt --all --check
2227

2328
build:
2429
needs: [ "lint" ]

0 commit comments

Comments
 (0)