mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 14:22:34 +00:00
chore: Update from '_rust/main' template
This commit is contained in:
commit
063b153628
4 changed files with 40 additions and 4 deletions
2
.github/renovate.json5
vendored
2
.github/renovate.json5
vendored
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
schedule: [
|
||||
'before 3am on the first day of the month',
|
||||
'before 5am on the first day of the month',
|
||||
],
|
||||
semanticCommits: 'enabled',
|
||||
configMigration: true,
|
||||
|
|
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
|
@ -133,6 +133,18 @@ jobs:
|
|||
- uses: Swatinem/rust-cache@v2
|
||||
- name: UI Tests
|
||||
run: make test-ui-${{ matrix.features }}
|
||||
lockfile:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
- name: Install Rust
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
toolchain: stable
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: "Is lockfile updated?"
|
||||
run: cargo fetch --locked
|
||||
docs:
|
||||
name: Docs
|
||||
runs-on: ubuntu-latest
|
||||
|
|
24
.github/workflows/rust-next.yml
vendored
24
.github/workflows/rust-next.yml
vendored
|
@ -72,3 +72,27 @@ jobs:
|
|||
run: make test-minimal ARGS='--manifest-path Cargo.toml'
|
||||
- name: Test dynamic completions
|
||||
run: cargo test -p clap_complete -F unstable-dynamic
|
||||
latest:
|
||||
name: "Check latest dependencies"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
- name: Install Rust
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
toolchain: stable
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Update dependencues
|
||||
run: cargo update
|
||||
- name: Build
|
||||
run: make build-${{matrix.features}}
|
||||
- name: Test
|
||||
run: make test-${{matrix.features}}
|
||||
- name: Test (benches)
|
||||
run: make test-${{matrix.features}} ARGS='--workspace --benches'
|
||||
- name: Test (ultra-minimal)
|
||||
if: matrix.build == 'minimal'
|
||||
run: make test-minimal ARGS='--manifest-path Cargo.toml'
|
||||
- name: Test dynamic completions
|
||||
run: cargo test -p clap_complete -F unstable-dynamic
|
||||
|
|
|
@ -5,7 +5,7 @@ exclude: |
|
|||
)$
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.3.0
|
||||
rev: v4.4.0
|
||||
hooks:
|
||||
- id: check-yaml
|
||||
stages: [commit]
|
||||
|
@ -20,12 +20,12 @@ repos:
|
|||
- id: detect-private-key
|
||||
stages: [commit]
|
||||
- repo: https://github.com/crate-ci/typos
|
||||
rev: v1.11.1
|
||||
rev: v1.16.3
|
||||
hooks:
|
||||
- id: typos
|
||||
stages: [commit]
|
||||
- repo: https://github.com/crate-ci/committed
|
||||
rev: v1.0.4
|
||||
rev: v1.0.20
|
||||
hooks:
|
||||
- id: committed
|
||||
stages: [commit-msg]
|
||||
|
|
Loading…
Reference in a new issue