name: Rust

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

env:
  CARGO_TERM_COLOR: always

jobs:
  ubuntu-build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: Ubuntu Build
      run: cargo build --verbose
    - name: Run tests on Ubuntu
      run: cargo test --verbose

  windows-build:

    runs-on: windows-latest

    steps:
    - uses: actions/checkout@v2
    - name: Windows Build
      run: cargo build --verbose
    - name: Run tests on Windows
      run: cargo test --verbose

  macos-build:

    runs-on: macos-latest

    steps:
    - uses: actions/checkout@v2
    - name: OSX Build
      run: cargo build --verbose
    - name: Run tests on OSX
      run: cargo test --verbose

name: Rust

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

env:
  CARGO_TERM_COLOR: always

jobs:

  test:
    name: Build and test
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os:
        - ubuntu-latest
        - windows-latest
        - macos-latest

    steps:
    - uses: actions/checkout@v2
    - run: cargo build --verbose
    - run: cargo test --verbose

Reduce redundancy in actions file
Reduce redundancy in actions file
