|
| 1 | +# -*- coding: utf-8 -*- |
| 2 | +# vim: ft=yaml |
| 3 | +--- |
| 4 | +name: 'Kitchen (macOS)' |
| 5 | +'on': ['push', 'pull_request'] |
| 6 | + |
| 7 | +env: |
| 8 | + KITCHEN_LOCAL_YAML: 'kitchen.macos.yml' |
| 9 | + |
| 10 | +jobs: |
| 11 | + test-12: |
| 12 | + runs-on: 'macos-12' |
| 13 | + strategy: |
| 14 | + fail-fast: false |
| 15 | + matrix: |
| 16 | + instance: |
| 17 | + - default-macos-12-latest-py3 |
| 18 | + steps: |
| 19 | + - name: 'Check out code' |
| 20 | + uses: 'actions/checkout@v2' |
| 21 | + - name: 'Set up Bundler cache' |
| 22 | + uses: 'actions/cache@v1' |
| 23 | + with: |
| 24 | + path: 'vendor/bundle' |
| 25 | + key: "${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}" |
| 26 | + restore-keys: "${{ runner.os }}-gems-" |
| 27 | + - name: 'Run Bundler' |
| 28 | + run: | |
| 29 | + ruby --version |
| 30 | + bundle config path vendor/bundle |
| 31 | + bundle install --jobs 4 --retry 3 |
| 32 | + - name: 'Run Test Kitchen' |
| 33 | + run: 'bundle exec kitchen verify ${{ matrix.instance }}' |
| 34 | + test-11: |
| 35 | + runs-on: 'macos-11' |
| 36 | + strategy: |
| 37 | + fail-fast: false |
| 38 | + matrix: |
| 39 | + instance: |
| 40 | + - default-macos-11-latest-py3 |
| 41 | + steps: |
| 42 | + - name: 'Check out code' |
| 43 | + uses: 'actions/checkout@v2' |
| 44 | + - name: 'Set up Bundler cache' |
| 45 | + uses: 'actions/cache@v1' |
| 46 | + with: |
| 47 | + path: 'vendor/bundle' |
| 48 | + key: "${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}" |
| 49 | + restore-keys: "${{ runner.os }}-gems-" |
| 50 | + - name: 'Run Bundler' |
| 51 | + run: | |
| 52 | + ruby --version |
| 53 | + bundle config path vendor/bundle |
| 54 | + bundle install --jobs 4 --retry 3 |
| 55 | + - name: 'Run Test Kitchen' |
| 56 | + run: 'bundle exec kitchen verify ${{ matrix.instance }}' |
| 57 | + test-1015: |
| 58 | + runs-on: 'macos-10.15' |
| 59 | + strategy: |
| 60 | + fail-fast: false |
| 61 | + matrix: |
| 62 | + instance: |
| 63 | + - default-macos-1015-latest-py3 |
| 64 | + steps: |
| 65 | + - name: 'Check out code' |
| 66 | + uses: 'actions/checkout@v2' |
| 67 | + - name: 'Set up Bundler cache' |
| 68 | + uses: 'actions/cache@v1' |
| 69 | + with: |
| 70 | + path: 'vendor/bundle' |
| 71 | + key: "${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}" |
| 72 | + restore-keys: "${{ runner.os }}-gems-" |
| 73 | + - name: 'Run Bundler' |
| 74 | + run: | |
| 75 | + ruby --version |
| 76 | + bundle config path vendor/bundle |
| 77 | + bundle install --jobs 4 --retry 3 |
| 78 | + - name: 'Run Test Kitchen' |
| 79 | + run: 'bundle exec kitchen verify ${{ matrix.instance }}' |
0 commit comments