Skip to content

Commit

Permalink
fmt and clippy to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
tuna-f1sh committed Nov 18, 2023
1 parent 1a83a15 commit ec18e92
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
on: [push, pull_request]
on:
push:
branches:
- main
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
pull_request:
workflow_dispatch:

name: Test, build and package

Expand Down Expand Up @@ -62,6 +69,15 @@ jobs:
if: matrix.job.use-cross == true
run: cargo install cross

- name: Format and clippy
id: format
shell: bash
if: matrix.job.use-cross == false
run: |
cargo fmt -- --check
cargo clippy --all-targets
cargo clippy --all-targets --all-features
- name: Test
id: test
shell: bash
Expand Down

0 comments on commit ec18e92

Please sign in to comment.