-
-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (37 loc) · 1.21 KB
/
test.yml
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
name: Test
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
kitchen:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform: [ "default-debian-11", "default-debian-12", "default-ubuntu-2204", "default-ubuntu-2404" ]
recipe: [ "binary", "source" ]
variant: [ "core" ]
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ruby # latest stable release
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run Test Kitchen platform ${{ matrix.platform }}
run: env KITCHEN_RECIPE=${{ matrix.recipe }} KITCHEN_VARIANT=${{ matrix.variant }} bundle exec rake kitchen:${{ matrix.platform }}
style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ruby # latest stable release
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run style checks
run: bundle exec rake style:ruby