Skip to content

Commit

Permalink
SemVer check CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kornelski committed Aug 29, 2024
1 parent 62aa0de commit db766ad
Showing 1 changed file with 23 additions and 19 deletions.
42 changes: 23 additions & 19 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
matrix:
os: [ macos-latest ]
# NOTE: when changing the MSRV version, change it below as well
rust: [ 1.70.0, stable, beta ]
rust: [ 1.70.0, stable, nightly ]

steps:
- name: Checkout sources
Expand All @@ -33,6 +33,28 @@ jobs:
- name: Check default features
run: cargo check --all

lints:
name: Lints and Breaking Changes
runs-on: macos-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install stable toolchain
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
components: clippy, rustfmt

- name: DO NOT USE RUSTFMT
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"

- name: SemVer check
uses: obi1kenobi/cargo-semver-checks-action@v2

- name: Run cargo clippy
run: cargo clippy --all-features

ios:
name: iOS compile-check
runs-on: ubuntu-latest
Expand Down Expand Up @@ -64,21 +86,3 @@ jobs:
- name: Run check
run: cargo check --all-features -p security-framework --target aarch64-apple-darwin

lints:
name: Lints
runs-on: macos-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install stable toolchain
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
components: clippy, rustfmt

- name: DO NOT USE RUSTFMT
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"

- name: Run cargo clippy
run: cargo clippy --all-features

0 comments on commit db766ad

Please sign in to comment.