forked from tomohiro/puppet-mackerel_agent
-
Notifications
You must be signed in to change notification settings - Fork 4
76 lines (74 loc) · 1.94 KB
/
ci.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [dummy]
ruby-version: [dummy]
puppet-version: [dummy]
check: [dummy]
include:
- os: ubuntu-18.04
ruby-version: 2.6
puppet-version: '~> 6.0'
check: 'spec'
- os: ubuntu-20.04
ruby-version: 2.6
puppet-version: '~> 6.0'
check: 'spec'
- os: ubuntu-18.04
ruby-version: 2.6
puppet-version: '~> 6.0'
check: 'syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop'
- os: ubuntu-18.04
ruby-version: 2.3.8
puppet-version: '~> 4.0'
check: parallel_spec
- os: ubuntu-18.04
ruby-version: 2.4.9
puppet-version: '~> 5.0'
check: parallel_spec
- os: ubuntu-18.04
ruby-version: 2.5.7
puppet-version: '~> 5.0'
check: parallel_spec
exclude:
- os: dummy
ruby-version: dummy
puppet-version: dummy
check: dummy
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
env:
PUPPET_GEM_VERSION: ${{ matrix.puppet-version }}
- name: Run tests
run: bundle exec rake $CHECK
env:
CHECK: ${{ matrix.check }}
centos:
runs-on: ubuntu-latest
container: ghcr.io/k1low/centve:7-base
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
run: |
anyenv-init
anyenv install rbenv -f
rbenv install 2.6.7
rbenv global 2.6.7
- name: Run tests
run: |
gem install bundler
bundle install
bundle exec rake spec