summaryrefslogtreecommitdiff
path: root/.github/workflows/func_spec.yml
blob: 3900bd1d0084324a91e795e206c8fb094f782ffd (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
31
32
33
34
35
36
37
38
39
40
41
42
43
---
name: func_spec

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

jobs:
  choco:
    strategy:
      fail-fast: false
      matrix:
        os: [windows-2019, windows-2022]
        # Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
        ruby: ['3.1']
    runs-on: ${{ matrix.os }}
    steps:
    - uses: actions/checkout@v3
    - uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
        bundler-cache: false
    - run: |
        bundle install
        bundle exec rspec spec/functional/resource/chocolatey_package_spec.rb
  userdefaults:
    strategy:
      fail-fast: false
      matrix:
        os: [macos-11, macos-12]
        # Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
        ruby: ['3.1']
    runs-on: ${{ matrix.os }}
    steps:
    - uses: actions/checkout@v3
    - uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
        bundler-cache: false
    - run: bundle install
    - run: bundle exec rspec spec/functional/resource/macos_userdefaults_spec.rb