Move back to 1.49.0 by splitting off rustfmt and clippy to only run on stable
This commit is contained in:
parent
3eb45cbb3e
commit
8aa670a9cd
50
.github/workflows/ci.yml
vendored
50
.github/workflows/ci.yml
vendored
|
@ -17,7 +17,7 @@ jobs:
|
|||
matrix:
|
||||
include:
|
||||
- { rust: stable, os: ubuntu-latest }
|
||||
- { rust: 1.51.0, os: ubuntu-latest }
|
||||
- { rust: 1.49.0, os: ubuntu-latest }
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
@ -27,11 +27,6 @@ jobs:
|
|||
with:
|
||||
toolchain: ${{ matrix.rust }}
|
||||
override: true
|
||||
components: clippy, rustfmt
|
||||
- name: Check format
|
||||
run: cargo fmt --all -- --check
|
||||
- name: Check with clippy
|
||||
run: cargo clippy --all
|
||||
- name: Build with all features
|
||||
run: cargo build --all-features
|
||||
- name: Build
|
||||
|
@ -41,6 +36,48 @@ jobs:
|
|||
- name: Clean
|
||||
run: cargo clean
|
||||
|
||||
rustfmt:
|
||||
name: Run rustfmt - Rust (${{ matrix.rust }}) on ${{ matrix.os }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- { rust: stable, os: ubuntu-latest }
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: true
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: ${{ matrix.rust }}
|
||||
override: true
|
||||
components: rustfmt
|
||||
- name: Check format
|
||||
run: cargo fmt --all -- --check
|
||||
|
||||
clippy:
|
||||
name: Run clippy - Rust (${{ matrix.rust }}) on ${{ matrix.os }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- { rust: stable, os: ubuntu-latest }
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: true
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: ${{ matrix.rust }}
|
||||
override: true
|
||||
components: clippy
|
||||
- name: Check with clippy
|
||||
run: cargo clippy --all
|
||||
|
||||
examples:
|
||||
name: Build examples - Rust (${{ matrix.rust }}) on ${{ matrix.os }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
@ -89,7 +126,6 @@ jobs:
|
|||
with:
|
||||
toolchain: ${{ matrix.rust }}
|
||||
override: true
|
||||
components: clippy, rustfmt
|
||||
- name: Build on nightly with all features
|
||||
run: cargo build --all-features
|
||||
- name: Build on nightly
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
* [Docs](https://docs.rs/async-graphql)
|
||||
* [GitHub repository](https://github.com/async-graphql/async-graphql)
|
||||
* [Cargo package](https://crates.io/crates/async-graphql)
|
||||
* Minimum supported Rust version: 1.51.0 or later
|
||||
* Minimum supported Rust version: 1.49.0 or later
|
||||
|
||||
## Safety
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user