mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-21 16:41:01 -05:00
chore: Upgrade boilerplate
This commit is contained in:
parent
b686760935
commit
d6d800c6d1
6 changed files with 11 additions and 27 deletions
1
.clippy.toml
Normal file
1
.clippy.toml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
msrv = "1.54.0" # MSRV
|
30
.github/workflows/ci.yml
vendored
30
.github/workflows/ci.yml
vendored
|
@ -19,33 +19,13 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
ci:
|
ci:
|
||||||
name: CI
|
name: CI
|
||||||
needs: [smoke, test, msrv, docs, rustfmt, clippy]
|
needs: [test, msrv, docs, rustfmt, clippy]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Done
|
- name: Done
|
||||||
run: exit 0
|
run: exit 0
|
||||||
smoke:
|
|
||||||
name: Quick Check
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- name: Install Rust
|
|
||||||
uses: actions-rs/toolchain@v1
|
|
||||||
with:
|
|
||||||
toolchain: stable
|
|
||||||
profile: minimal
|
|
||||||
override: true
|
|
||||||
- uses: Swatinem/rust-cache@v1
|
|
||||||
- name: Default features
|
|
||||||
run: cargo check --workspace --all-targets
|
|
||||||
- name: All features
|
|
||||||
run: cargo check --workspace --all-targets --all-features
|
|
||||||
- name: No-default features
|
|
||||||
run: cargo check --workspace --all-targets --no-default-features
|
|
||||||
test:
|
test:
|
||||||
name: Test
|
name: Test
|
||||||
needs: smoke
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
|
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
|
||||||
|
@ -62,6 +42,8 @@ jobs:
|
||||||
profile: minimal
|
profile: minimal
|
||||||
override: true
|
override: true
|
||||||
- uses: Swatinem/rust-cache@v1
|
- uses: Swatinem/rust-cache@v1
|
||||||
|
- name: Build
|
||||||
|
run: cargo test --no-run --workspace --all-features
|
||||||
- name: Default features
|
- name: Default features
|
||||||
run: cargo test --workspace
|
run: cargo test --workspace
|
||||||
- name: All features
|
- name: All features
|
||||||
|
@ -70,7 +52,6 @@ jobs:
|
||||||
run: cargo test --workspace --no-default-features
|
run: cargo test --workspace --no-default-features
|
||||||
msrv:
|
msrv:
|
||||||
name: "Check MSRV: 1.54.0"
|
name: "Check MSRV: 1.54.0"
|
||||||
needs: smoke
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
@ -90,7 +71,6 @@ jobs:
|
||||||
run: cargo check --workspace --all-targets --no-default-features
|
run: cargo check --workspace --all-targets --no-default-features
|
||||||
docs:
|
docs:
|
||||||
name: Docs
|
name: Docs
|
||||||
needs: smoke
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
@ -105,7 +85,7 @@ jobs:
|
||||||
- name: Check documentation
|
- name: Check documentation
|
||||||
env:
|
env:
|
||||||
RUSTDOCFLAGS: -D warnings
|
RUSTDOCFLAGS: -D warnings
|
||||||
run: cargo doc --no-deps --document-private-items --workspace
|
run: cargo doc --workspace --all-features --no-deps --document-private-items
|
||||||
rustfmt:
|
rustfmt:
|
||||||
name: rustfmt
|
name: rustfmt
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -141,4 +121,4 @@ jobs:
|
||||||
- uses: actions-rs/clippy-check@v1
|
- uses: actions-rs/clippy-check@v1
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
args: --workspace --all-features --all-targets -- -D warnings
|
args: --workspace --all-features --all-targets -- -D warnings --allow deprecated
|
||||||
|
|
2
.github/workflows/committed.yml
vendored
2
.github/workflows/committed.yml
vendored
|
@ -1,3 +1,5 @@
|
||||||
|
# Not run as part of pre-commit checks because they don't handle sending the correct commit
|
||||||
|
# range to `committed`
|
||||||
name: Lint Commits
|
name: Lint Commits
|
||||||
on: [pull_request]
|
on: [pull_request]
|
||||||
|
|
||||||
|
|
2
.github/workflows/rust-next.yml
vendored
2
.github/workflows/rust-next.yml
vendored
|
@ -24,6 +24,8 @@ jobs:
|
||||||
profile: minimal
|
profile: minimal
|
||||||
override: true
|
override: true
|
||||||
- uses: Swatinem/rust-cache@v1
|
- uses: Swatinem/rust-cache@v1
|
||||||
|
- name: Build
|
||||||
|
run: cargo test --no-run --workspace --all-features
|
||||||
- name: Default features
|
- name: Default features
|
||||||
run: cargo test --workspace
|
run: cargo test --workspace
|
||||||
- name: All features
|
- name: All features
|
||||||
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1 +1 @@
|
||||||
/target
|
target
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
pre-release-commit-message = "chore: Release"
|
pre-release-commit-message = "chore: Release"
|
||||||
dev-version = false
|
|
||||||
tag-message = "{{tag_name}}"
|
tag-message = "{{tag_name}}"
|
||||||
tag-name = "{{prefix}}v{{version}}"
|
tag-name = "{{prefix}}v{{version}}"
|
||||||
consolidate-commits = true
|
consolidate-commits = true
|
||||||
|
|
Loading…
Reference in a new issue