Retest GitHub actions
Signed-off-by: Robert Vojta <rvojta@me.com>
This commit is contained in:
parent
1f9ead9d51
commit
072857ed67
44
.github/workflows/crossterm_test.yml
vendored
44
.github/workflows/crossterm_test.yml
vendored
@ -1,25 +1,53 @@
|
|||||||
name: Crossterm Test
|
name: Crossterm Test
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
# Build master only
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
# Build pull requests targeting master branch only
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linux_mac:
|
test:
|
||||||
name: Running on ${{ matrix.os }}
|
name: Running on ${{ matrix.os }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-2019, macOS-10.14]
|
os: [ubuntu-latest, windows-2019, macOS-latest]
|
||||||
rust: [stable, nightly]
|
rust: [stable, nightly]
|
||||||
|
include:
|
||||||
|
- rust: stable
|
||||||
|
can-fail: false
|
||||||
|
- rust: nightly
|
||||||
|
can-fail: true
|
||||||
steps:
|
steps:
|
||||||
- uses: hecrj/setup-rust-action@master
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
with:
|
||||||
|
fetch-depth: 1
|
||||||
|
- name: Install Rust
|
||||||
|
uses: hecrj/setup-rust-action@master
|
||||||
with:
|
with:
|
||||||
rust-version: ${{ matrix.rust }}
|
rust-version: ${{ matrix.rust }}
|
||||||
- uses: actions/checkout@master
|
components: rustfmt
|
||||||
- name: Run Build
|
continue-on-error: ${{ matrix.can-fail }}
|
||||||
|
- name: Toolchain Information
|
||||||
|
run: |
|
||||||
|
rustc --version
|
||||||
|
rustfmt --version
|
||||||
|
rustup --version
|
||||||
|
cargo --version
|
||||||
|
continue-on-error: ${{ matrix.can-fail }}
|
||||||
|
- name: Check Formatting
|
||||||
|
if: matrix.rust == 'stable'
|
||||||
|
run: cargo fmt --all -- --check
|
||||||
|
continue-on-error: ${{ matrix.can-fail }}
|
||||||
|
- name: Test Build
|
||||||
run: cargo build
|
run: cargo build
|
||||||
- name: Check Examples
|
continue-on-error: ${{ matrix.can-fail }}
|
||||||
run: cargo check --examples
|
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: cargo test -v
|
run: cargo test --all-features -- --nocapture --test-threads 1
|
||||||
|
continue-on-error: ${{ matrix.can-fail }}
|
||||||
|
Loading…
Reference in New Issue
Block a user