name: Build

on:
  push:
    paths-ignore:
      - 'README.md'
      - 'LICENSE'
    branches:
      - master
  pull_request:
    branches:
      - master

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions-rs/cargo@v1.0.1
        with:
          command: test
          toolchain: stable
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions-rs/cargo@v1.0.1
        with:
          command: build
          toolchain: stable
