mirror of
https://github.com/TECHNOFAB11/jwt-authorizer.git
synced 2025-12-12 16:10:06 +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:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
uses: actions-rs/toolchain@v1
|
uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
|
||||||
toolchain: stable
|
|
||||||
override: true
|
|
||||||
components: rustfmt
|
components: rustfmt
|
||||||
|
|
||||||
- name: Check format
|
- name: Check format
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo fmt --check
|
||||||
with:
|
|
||||||
command: fmt
|
|
||||||
args: -- --check
|
|
||||||
|
|
||||||
clippy:
|
clippy:
|
||||||
name: Clippy
|
name: Clippy
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
|
||||||
toolchain: stable
|
|
||||||
override: true
|
|
||||||
components: clippy
|
components: clippy
|
||||||
- uses: actions-rs/cargo@v1
|
- run: cargo clippy --all-targets --all-features -- -D warnings
|
||||||
with:
|
|
||||||
command: clippy
|
|
||||||
args: --all-targets --all-features -- -D warnings
|
|
||||||
|
|
||||||
tests:
|
tests:
|
||||||
name: Tests
|
name: Tests
|
||||||
|
|
@ -49,20 +36,20 @@ jobs:
|
||||||
build: [pinned, stable, nightly]
|
build: [pinned, stable, nightly]
|
||||||
include:
|
include:
|
||||||
- build: pinned
|
- build: pinned
|
||||||
os: ubuntu-20.04
|
os: ubuntu-22.04
|
||||||
rust: 1.65.0
|
rust: 1.65.0
|
||||||
- build: stable
|
- build: stable
|
||||||
os: ubuntu-20.04
|
os: ubuntu-22.04
|
||||||
rust: stable
|
rust: stable
|
||||||
- build: nightly
|
- build: nightly
|
||||||
os: ubuntu-20.04
|
os: ubuntu-22.04
|
||||||
rust: nightly
|
rust: nightly
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
uses: hecrj/setup-rust-action@v1
|
uses: dtolnay/rust-toolchain@master
|
||||||
with:
|
with:
|
||||||
rust-version: ${{ matrix.rust }}
|
toolchain: ${{ matrix.rust }}
|
||||||
|
|
||||||
- name: Build System Info
|
- name: Build System Info
|
||||||
run: rustc --version
|
run: rustc --version
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue