Skip to content

feat(git-msg): add dual license support and rename README_zh.md to RE… #1

feat(git-msg): add dual license support and rename README_zh.md to RE…

feat(git-msg): add dual license support and rename README_zh.md to RE… #1

Workflow file for this run

name: CI
on:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]
jobs:
test:
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Cargo Check
run: cargo check --verbose
- name: Cargo Test
run: cargo test --verbose
lint:
name: Code Formatting & Clippy Lints
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Check Formatting
run: cargo fmt --all -- --check
- name: Clippy Lints
run: cargo clippy --all-targets -- -D warnings