mirror of
https://github.com/crate-ci/typos.git
synced 2026-11-11 16:43:58 +01:00
chore: Upgrade boilerplate
This commit is contained in:
1 parent
b686760935
commit
d6d800c6d1
6 files changed
+11
-27
No files matched your search
@@ -0,0 +1 @@
|
||||
msrv = "1.54.0" # MSRV
|
||||
@@ -19,33 +19,13 @@ on:
|
||||
jobs:
|
||||
ci:
|
||||
name: CI
|
||||
needs: [smoke, test, msrv, docs, rustfmt, clippy]
|
||||
needs: [test, msrv, docs, rustfmt, clippy]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Done
|
||||
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:
|
||||
name: Test
|
||||
needs: smoke
|
||||
strategy:
|
||||
matrix:
|
||||
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
|
||||
@@ -62,6 +42,8 @@ jobs:
|
||||
profile: minimal
|
||||
override: true
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- name: Build
|
||||
run: cargo test --no-run --workspace --all-features
|
||||
- name: Default features
|
||||
run: cargo test --workspace
|
||||
- name: All features
|
||||
@@ -70,7 +52,6 @@ jobs:
|
||||
run: cargo test --workspace --no-default-features
|
||||
msrv:
|
||||
name: "Check MSRV: 1.54.0"
|
||||
needs: smoke
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
@@ -90,7 +71,6 @@ jobs:
|
||||
run: cargo check --workspace --all-targets --no-default-features
|
||||
docs:
|
||||
name: Docs
|
||||
needs: smoke
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
@@ -105,7 +85,7 @@ jobs:
|
||||
- name: Check documentation
|
||||
env:
|
||||
RUSTDOCFLAGS: -D warnings
|
||||
run: cargo doc --no-deps --document-private-items --workspace
|
||||
run: cargo doc --workspace --all-features --no-deps --document-private-items
|
||||
rustfmt:
|
||||
name: rustfmt
|
||||
runs-on: ubuntu-latest
|
||||
@@ -141,4 +121,4 @@ jobs:
|
||||
- uses: actions-rs/clippy-check@v1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
args: --workspace --all-features --all-targets -- -D warnings
|
||||
args: --workspace --all-features --all-targets -- -D warnings --allow deprecated
|
||||
@@ -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
|
||||
on: [pull_request]
|
||||
|
||||
|
||||
@@ -24,6 +24,8 @@ jobs:
|
||||
profile: minimal
|
||||
override: true
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- name: Build
|
||||
run: cargo test --no-run --workspace --all-features
|
||||
- name: Default features
|
||||
run: cargo test --workspace
|
||||
- name: All features
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
/target
|
||||
target
|
||||
@@ -1,5 +1,4 @@
|
||||
pre-release-commit-message = "chore: Release"
|
||||
dev-version = false
|
||||
tag-message = "{{tag_name}}"
|
||||
tag-name = "{{prefix}}v{{version}}"
|
||||
consolidate-commits = true
|
||||
|
||||
Reference in new issue
Block a user