Skip to content

Commit

Permalink
ci: add msrv and deny checks to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadow53 committed Aug 20, 2023
1 parent dc32128 commit 3b46fdf
Showing 1 changed file with 72 additions and 1 deletion.
73 changes: 72 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ jobs:
outputs:
rust: ${{ steps.filter.outputs.rust }}
cargo: ${{ steps.filter.outputs.cargo }}
pytests: ${{ steps.filter.outputs.pytests }}}
steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
Expand Down Expand Up @@ -39,6 +38,78 @@ jobs:
# Push-only API key
fossa-api-key: 7b6d2d5fb78bb718019e16184020ef6d

msrv:
name: Cargo MSRV
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: clippy, rustfmt

- name: Install cargo-msrv
uses: actions-rs/[email protected]
if: matrix.os == 'ubuntu-latest'
with:
crate: cargo-msrv
version: latest
use-tool-cache: true

- name: Install cargo-make
uses: actions-rs/[email protected]
if: matrix.os == 'ubuntu-latest'
with:
crate: cargo-make
version: latest
use-tool-cache: true

- name: Cargo deny
uses: actions-rs/cargo@v1
with:
command: make
args: msrv-verify

deny:
name: Cargo deny
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: clippy, rustfmt

- name: Install cargo-deny
uses: actions-rs/[email protected]
if: matrix.os == 'ubuntu-latest'
with:
crate: cargo-deny
version: latest
use-tool-cache: true

- name: Install cargo-make
uses: actions-rs/[email protected]
if: matrix.os == 'ubuntu-latest'
with:
crate: cargo-make
version: latest
use-tool-cache: true

- name: Cargo deny
uses: actions-rs/cargo@v1
with:
command: make
args: deny

fmt:
name: Cargo fmt
runs-on: ubuntu-latest
Expand Down

0 comments on commit 3b46fdf

Please sign in to comment.