mirror of
https://github.com/rust-lang/mdBook
synced 2024-12-14 14:52:37 +00:00
6a7de13c6f
* Update Cargo.lock * Bump MSRV to 1.42. There are a few dependencies that require this version.
51 lines
1.3 KiB
YAML
51 lines
1.3 KiB
YAML
name: CI
|
|
on:
|
|
# Only run when merging to master, or open/synchronize/reopen a PR.
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
name: Test
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
build: [stable, beta, nightly, macos, windows, msrv]
|
|
include:
|
|
- build: stable
|
|
os: ubuntu-latest
|
|
rust: stable
|
|
- build: beta
|
|
os: ubuntu-latest
|
|
rust: beta
|
|
- build: nightly
|
|
os: ubuntu-latest
|
|
rust: nightly
|
|
- build: macos
|
|
os: macos-latest
|
|
rust: stable
|
|
- build: windows
|
|
os: windows-latest
|
|
rust: stable
|
|
- build: msrv
|
|
os: ubuntu-latest
|
|
rust: 1.42.0
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
- name: Install Rust
|
|
run: bash ci/install-rust.sh ${{ matrix.rust }}
|
|
- name: Build and run tests
|
|
run: cargo test
|
|
- name: Test no default
|
|
run: cargo test --no-default-features
|
|
|
|
rustfmt:
|
|
name: Rustfmt
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
- name: Install Rust
|
|
run: rustup update stable && rustup default stable && rustup component add rustfmt
|
|
- run: cargo fmt -- --check
|