1name: ci 2on: 3 pull_request: 4 push: 5 branches: 6 - master 7 schedule: 8 - cron: '00 01 * * *' 9jobs: 10 test: 11 name: test 12 runs-on: ${{ matrix.os }} 13 strategy: 14 matrix: 15 build: 16 - pinned 17 - stable 18 - beta 19 - nightly 20 - macos 21 - win-msvc 22 - win-gnu 23 include: 24 - build: pinned 25 os: ubuntu-18.04 26 rust: 1.46.0 27 - build: stable 28 os: ubuntu-18.04 29 rust: stable 30 - build: beta 31 os: ubuntu-18.04 32 rust: beta 33 - build: nightly 34 os: ubuntu-18.04 35 rust: nightly 36 - build: macos 37 os: macos-latest 38 rust: stable 39 - build: win-msvc 40 os: windows-2019 41 rust: stable 42 - build: win-gnu 43 os: windows-2019 44 rust: stable-x86_64-gnu 45 steps: 46 - name: Checkout repository 47 uses: actions/checkout@v1 48 with: 49 fetch-depth: 1 50 - name: Install Rust 51 uses: hecrj/setup-rust-action@v1 52 with: 53 rust-version: ${{ matrix.rust }} 54 - run: cargo build --verbose 55 - run: cargo doc --verbose 56 - run: cargo test --verbose 57 - run: cargo build --verbose --manifest-path quickcheck_macros/Cargo.toml 58 - run: cargo test --verbose --manifest-path quickcheck_macros/Cargo.toml 59 60 rustfmt: 61 name: rustfmt 62 runs-on: ubuntu-18.04 63 steps: 64 - name: Checkout repository 65 uses: actions/checkout@v1 66 with: 67 fetch-depth: 1 68 - name: Install Rust 69 uses: hecrj/setup-rust-action@v1 70 with: 71 rust-version: stable 72 - name: Install rustfmt 73 run: rustup component add rustfmt 74 - name: Check formatting 75 run: | 76 cargo fmt --all -- --check 77