-
Notifications
You must be signed in to change notification settings - Fork 102
86 lines (81 loc) · 2.18 KB
/
tests.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
77
78
79
80
81
82
83
84
85
86
name: tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '0 4 * * *'
jobs:
syntax-lint:
runs-on: ubuntu-latest
env:
SIMPLECOV: yes
PUPPET_GEM_VERSION: "~> 7.0"
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run tests
run: bundle exec rake syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop
unit:
runs-on: ubuntu-latest
env:
SIMPLECOV: yes
strategy:
fail-fast: false
matrix:
include:
- rvm: 2.7
puppet_gem_version: "~> 7.0"
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.rvm }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
env:
PUPPET_GEM_VERSION: ${{ matrix.puppet_gem_version }}
- name: Run tests
run: bundle exec rake parallel_spec
env:
PUPPET_GEM_VERSION: ${{ matrix.puppet_gem_version }}
integration:
runs-on: ubuntu-latest
env:
SIMPLECOV: yes
strategy:
fail-fast: false
matrix:
version_os_puppet:
- centos-7-puppet6
- centos-7-puppet7
- centos-8-puppet6
- centos-8-puppet7
- debian-10-puppet6
- debian-10-puppet7
- opensuse-15-puppet6
- opensuse-15-puppet7
- oracle-7-puppet6
- oracle-7-puppet7
- ubuntu-18-04-puppet6
- ubuntu-18-04-puppet7
- ubuntu-20-04-puppet6
- ubuntu-20-04-puppet7
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run tests
run: bundle exec rake kitchen
env:
INSTANCE: ${{ matrix.version_os_puppet }}