mirror of
https://github.com/TECHNOFAB11/jwt-authorizer.git
synced 2025-12-12 08:00:07 +01:00
build: use dtolnay/rust-toolchain, update ubuntu (LTS)
- avoid node 12 actions
This commit is contained in:
parent
7f9ad54694
commit
f961639e75
1 changed files with 9 additions and 22 deletions
31
.github/workflows/ci.yml
vendored
31
.github/workflows/ci.yml
vendored
|
|
@ -12,34 +12,21 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
override: true
|
||||
components: rustfmt
|
||||
|
||||
- name: Check format
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: fmt
|
||||
args: -- --check
|
||||
run: cargo fmt --check
|
||||
|
||||
clippy:
|
||||
name: Clippy
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions-rs/toolchain@v1
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
override: true
|
||||
components: clippy
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: clippy
|
||||
args: --all-targets --all-features -- -D warnings
|
||||
- run: cargo clippy --all-targets --all-features -- -D warnings
|
||||
|
||||
tests:
|
||||
name: Tests
|
||||
|
|
@ -49,20 +36,20 @@ jobs:
|
|||
build: [pinned, stable, nightly]
|
||||
include:
|
||||
- build: pinned
|
||||
os: ubuntu-20.04
|
||||
os: ubuntu-22.04
|
||||
rust: 1.65.0
|
||||
- build: stable
|
||||
os: ubuntu-20.04
|
||||
os: ubuntu-22.04
|
||||
rust: stable
|
||||
- build: nightly
|
||||
os: ubuntu-20.04
|
||||
os: ubuntu-22.04
|
||||
rust: nightly
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install Rust
|
||||
uses: hecrj/setup-rust-action@v1
|
||||
uses: dtolnay/rust-toolchain@master
|
||||
with:
|
||||
rust-version: ${{ matrix.rust }}
|
||||
toolchain: ${{ matrix.rust }}
|
||||
|
||||
- name: Build System Info
|
||||
run: rustc --version
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue