Skip to content

Commit db766ad

Browse files
committed
SemVer check CI
1 parent 62aa0de commit db766ad

File tree

1 file changed

+23
-19
lines changed

1 file changed

+23
-19
lines changed

.github/workflows/main.yml

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
matrix:
1414
os: [ macos-latest ]
1515
# NOTE: when changing the MSRV version, change it below as well
16-
rust: [ 1.70.0, stable, beta ]
16+
rust: [ 1.70.0, stable, nightly ]
1717

1818
steps:
1919
- name: Checkout sources
@@ -33,6 +33,28 @@ jobs:
3333
- name: Check default features
3434
run: cargo check --all
3535

36+
lints:
37+
name: Lints and Breaking Changes
38+
runs-on: macos-latest
39+
steps:
40+
- name: Checkout sources
41+
uses: actions/checkout@v2
42+
43+
- name: Install stable toolchain
44+
uses: dtolnay/rust-toolchain@v1
45+
with:
46+
toolchain: stable
47+
components: clippy, rustfmt
48+
49+
- name: DO NOT USE RUSTFMT
50+
run: "if cargo fmt --quiet --check -- --config-path=/dev/null; then echo >&2 'Do not reformat the code with rustfmt. This project does not use rustfmt.'; fi"
51+
52+
- name: SemVer check
53+
uses: obi1kenobi/cargo-semver-checks-action@v2
54+
55+
- name: Run cargo clippy
56+
run: cargo clippy --all-features
57+
3658
ios:
3759
name: iOS compile-check
3860
runs-on: ubuntu-latest
@@ -64,21 +86,3 @@ jobs:
6486
- name: Run check
6587
run: cargo check --all-features -p security-framework --target aarch64-apple-darwin
6688

67-
lints:
68-
name: Lints
69-
runs-on: macos-latest
70-
steps:
71-
- name: Checkout sources
72-
uses: actions/checkout@v2
73-
74-
- name: Install stable toolchain
75-
uses: dtolnay/rust-toolchain@v1
76-
with:
77-
toolchain: stable
78-
components: clippy, rustfmt
79-
80-
- name: DO NOT USE RUSTFMT
81-
run: "if cargo fmt --quiet --check -- --config-path=/dev/null; then echo >&2 'Do not reformat the code with rustfmt. This project does not use rustfmt.'; fi"
82-
83-
- name: Run cargo clippy
84-
run: cargo clippy --all-features

0 commit comments

Comments
 (0)