1name: tests 2 3on: 4 push: 5 branches: 6 - "*" 7 # not on tags 8 pull_request: 9 10env: 11 RUSTFLAGS: "-D warnings" 12 RUST_BACKTRACE: "1" 13 14jobs: 15 cargo_tests: 16 name: ${{ matrix.os }} ${{ matrix.rust_channel }} 17 runs-on: ${{ matrix.os }} 18 strategy: 19 fail-fast: false 20 matrix: 21 os: ["ubuntu-latest", "macOS-latest", "windows-latest"] 22 rust_channel: [stable, beta, nightly] 23 24 steps: 25 - uses: actions/checkout@v1 26 - uses: actions-rs/toolchain@v1 27 with: 28 toolchain: ${{ matrix.rust_channel }} 29 profile: minimal 30 override: true 31 - run: cargo test 32