Skip to content

Commit

Permalink
chore: Upgrade boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Feb 15, 2022
1 parent c6accdd commit b7c84f6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 25 deletions.
28 changes: 4 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/committed.yml
Original file line number Diff line number Diff line change
@@ -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]

Expand Down
1 change: 0 additions & 1 deletion release.toml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit b7c84f6

Please sign in to comment.