mirror of
https://github.com/actix/actix-extras.git
synced 2024-12-18 09:43:11 +01:00
56 lines
1.3 KiB
YAML
56 lines
1.3 KiB
YAML
name: Check MSRV
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
|
|
jobs:
|
|
build_and_test:
|
|
strategy:
|
|
fail-fast: false
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
|
|
- name: Install Rust
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: 1.39.0-x86_64-unknown-linux-gnu
|
|
profile: minimal
|
|
override: true
|
|
- name: Generate Cargo.lock
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: update
|
|
- name: Cache cargo registry
|
|
uses: actions/cache@v1
|
|
with:
|
|
path: ~/.cargo/registry
|
|
key: msrv-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
|
|
- name: Cache cargo index
|
|
uses: actions/cache@v1
|
|
with:
|
|
path: ~/.cargo/git
|
|
key: msrv-cargo-index-${{ hashFiles('**/Cargo.lock') }}
|
|
- name: Cache cargo build
|
|
uses: actions/cache@v1
|
|
with:
|
|
path: target
|
|
key: msrv-cargo-build-${{ hashFiles('**/Cargo.lock') }}
|
|
|
|
- name: checks
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: check
|
|
args: --all --bins --examples --tests
|
|
|
|
- name: tests
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: test
|
|
args: --all --no-fail-fast -- --nocapture
|