Skip to content

Commit 341dd90

Browse files
committed
Update CI
Make sure to lint and check everything in every configuration. Don't fail if an updated (transitive) dependency requires a newer msrv than the current msrv of markup.
1 parent 432a36e commit 341dd90

File tree

1 file changed

+53
-10
lines changed

1 file changed

+53
-10
lines changed

.github/workflows/build.yml

Lines changed: 53 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,66 @@ name: Build
33
on: [push, pull_request]
44

55
jobs:
6-
build:
6+
clippy:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
os: [ubuntu-latest]
11+
rust: [stable, nightly]
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: dtolnay/rust-toolchain@master
15+
with:
16+
toolchain: ${{ matrix.rust }}
17+
components: clippy
18+
- run: cargo clippy --workspace --no-default-features
19+
- run: cargo clippy --workspace --all-features
20+
21+
fmt:
22+
runs-on: ${{ matrix.os }}
23+
strategy:
24+
matrix:
25+
os: [ubuntu-latest]
26+
rust: [nightly]
27+
steps:
28+
- uses: actions/checkout@v3
29+
- uses: dtolnay/rust-toolchain@master
30+
with:
31+
toolchain: ${{ matrix.rust }}
32+
components: rustfmt
33+
- run: cargo fmt --all -- --check
34+
35+
test:
736
name: ${{ matrix.os }} - ${{ matrix.rust }}
837
runs-on: ${{ matrix.os }}
938
strategy:
1039
matrix:
1140
os: [ubuntu-latest, macos-latest, windows-latest]
12-
rust: [stable, nightly, 1.65.0]
41+
rust: [stable, nightly, '1.65.0']
42+
steps:
43+
- uses: actions/checkout@v3
44+
- uses: dtolnay/rust-toolchain@master
45+
with:
46+
toolchain: ${{ matrix.rust }}
47+
- run: cargo generate-lockfile -Zminimal-versions
48+
env:
49+
RUSTC_BOOTSTRAP: 1
50+
if: ${{ matrix.rust == '1.65.0' }}
51+
- run: cargo test --workspace --no-default-features
52+
- run: cargo test --workspace --all-features
53+
54+
feature-powerset:
55+
runs-on: ${{ matrix.os }}
56+
strategy:
57+
matrix:
58+
os: [ubuntu-latest]
59+
rust: [stable, nightly]
1360
steps:
1461
- uses: actions/checkout@v3
1562
- uses: dtolnay/rust-toolchain@master
1663
with:
1764
toolchain: ${{ matrix.rust }}
18-
components: clippy, rustfmt
19-
- run: cargo build
20-
- run: cargo test
21-
- run: cargo test --features itoa
22-
working-directory: markup
23-
- run: cargo fmt -- --check
24-
if: ${{ matrix.os == 'ubuntu-latest' }}
25-
- run: cargo clippy --all-targets
65+
- uses: taiki-e/install-action@v2
66+
with:
67+
tool: cargo-hack
68+
- run: cargo hack test --workspace --feature-powerset --optional-deps

0 commit comments

Comments
 (0)