Compare commits
2 commits
e231352009
...
52f8b313f4
Author | SHA1 | Date | |
---|---|---|---|
52f8b313f4 | |||
f510f6291c |
2 changed files with 12 additions and 27 deletions
|
@ -1,4 +1,4 @@
|
|||
name: CI
|
||||
name: Rust CI
|
||||
|
||||
on:
|
||||
push:
|
||||
|
@ -7,32 +7,17 @@ on:
|
|||
branches: [master]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Rust build
|
||||
rust_ci:
|
||||
name: Rust CI
|
||||
runs-on: debian
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: https://codeberg.org/TheAwiteb/rust-action@v1.70
|
||||
- run: cargo build
|
||||
rustfmt:
|
||||
name: Rust format
|
||||
runs-on: debian
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: https://codeberg.org/TheAwiteb/rust-action@v1.70
|
||||
- run: cargo fmt -- --check
|
||||
check:
|
||||
name: Rust check
|
||||
runs-on: debian
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: https://codeberg.org/TheAwiteb/rust-action@v1.70
|
||||
- run: cargo check
|
||||
clippy:
|
||||
name: Rust clippy
|
||||
runs-on: debian
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: https://codeberg.org/TheAwiteb/rust-action@v1.70
|
||||
- run: cargo clippy -- -D warnings
|
||||
|
||||
- name: Build the source code
|
||||
run: cargo build
|
||||
- name: Check the code format
|
||||
run: cargo fmt -- --check
|
||||
- name: Run cargo-check
|
||||
run: cargo check
|
||||
- name: Run cargo-clippy
|
||||
run: cargo clippy -- -D warnings
|
||||
|
|
|
@ -54,4 +54,4 @@ types_allowed = ["feat", "fix", "docs", "refactor", "change", "deprecate", "remo
|
|||
|
||||
# Rule: Header must match regex pattern.
|
||||
# Example: '^JIRA-\d+:'.
|
||||
header_pattern = '^\w+(\s\(\w+\))?(!)?: \w'
|
||||
header_pattern = '^\w+(\(\w+\))?(!)?: \w'
|
||||
|
|
Loading…
Reference in a new issue