setup-rust-action/.github/workflows/integration.yml
2019-09-04 13:22:46 +02:00

31 lines
862 B
YAML

name: Integration
on:
push: {}
schedule:
- cron: '0 0 * * *'
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
rust: [stable, nightly]
include:
- os: macOS-latest
rust: 'stable'
components: 'rustfmt, clippy'
steps:
- uses: hecrj/setup-rust-action@master
with:
rust-version: ${{ matrix.rust }}
components: ${{ matrix.components || '' }}
- name: Check Cargo availability
run: cargo --version
- name: Check Rustup default toolchain
run: rustup default | grep '${{ matrix.rust }}'
- name: Check rustfmt and clippy are available on MacOS
if: matrix.os == 'macOS-latest' && matrix.rust == 'stable'
run: |
cargo fmt --version
cargo clippy --version