summaryrefslogtreecommitdiff
path: root/.github/workflows/unit_specs.yml
blob: 38b884b5dfcb89bcd67bfa9bccb27a570348f40b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
name: unit_specs

"on":
  pull_request:
  push:
    branches:
      - main

jobs:
  unit:
    strategy:
      fail-fast: false
      matrix:
        os: [macos-10.15] # macos-11.0 is not public for now
        # 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