---
name: unit_specs

"on":
  pull_request:
  push:
    branches:
      - master

jobs:
  unit:
    strategy:
      fail-fast: false
      matrix:
        os: [macos-10.15, macos-11.0]
        # Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
        ruby: ['3.0']
    runs-on: ${{ matrix.os }}
    steps:
    - uses: actions/checkout@v2
    - uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
        bundler-cache: true
    - run: bundle exec rake spec:unit
    - run: bundle exec rake component_specs

Add macos unit testing with GitHub actions
Add macos unit testing with GitHub actions

Free!

Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
