name: CI
on:
  push:
    branches:
    - master
  pull_request:
    branches:
    - master
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
    - name: checkout
      uses: actions/checkout@master
    - name: build
      run: cargo build --verbose
    - name: test
      run: cargo test --verbose

name: CI
on:
  push:
    branches:
    - master
  pull_request:
    branches:
    - master
jobs:
  test:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        rust_version: [stable, beta, nightly]
    steps:
    - name: set rust version
      run: rustup install ${{ matrix.rust_version }}
    - name: checkout
      uses: actions/checkout@master
    - name: build
      run: cargo build --verbose
    - name: test
      run: cargo test --verbose

Use a build matrix to test stable, beta, and nightly.
Use a build matrix to test stable, beta, and nightly.
