summaryrefslogtreecommitdiff
path: root/.github/workflows/exec.yml
blob: 4aabba5e6ccf41476c3b1012e76a1c5e111b7127 (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
27
28
29
30
---
name: exec

'on':
  pull_request:
  push:
    branches:
      - main
      - 1=7-stable
      - 16-stable

permissions:
  contents: read

jobs:
  test:
    strategy:
      fail-fast: false
      matrix:
        os: ['macos-latest', 'ubuntu-latest', 'windows-latest']
        ruby: ['2.7', '3.0']
    name: Exec Ohai on ${{ matrix.os }} with Ruby ${{ matrix.ruby }}
    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 ohai