77 branches : [ master ]
88
99jobs :
10- test-static :
10+ test-static-current :
1111 strategy :
1212 fail-fast : false
1313 matrix :
14- puppet : [5.0, 6.0, 7.0]
14+ puppet : [7.22.0]
15+ ruby : [2.7.7, 3.0.5, 3.1.3]
16+
17+ name : Static code analysis
18+ runs-on : ubuntu-20.04
19+ permissions :
20+ contents : read
21+
22+ steps :
23+ - uses : actions/checkout@v3
24+
25+ - name : Set up Ruby
26+ uses : ruby/setup-ruby@v1
27+ with :
28+ ruby-version : ${{ matrix.ruby }}
29+ bundler-cache : true
30+ env :
31+ PUPPET_VERSION : ${{ matrix.puppet }}
32+
33+ - name : Run metadata lint
34+ run : |
35+ PUPPET_VERSION=${{ matrix.puppet }} bundle exec rake metadata_lint
36+
37+ - name : Run puppet lint
38+ run : |
39+ PUPPET_VERSION=${{ matrix.puppet }} bundle exec rake lint
40+
41+ - name : Run puppet syntax check
42+ run : |
43+ PUPPET_VERSION=${{ matrix.puppet }} bundle exec rake syntax
44+
45+ - name : Run puppet rspec tests
46+ run : |
47+ PUPPET_VERSION=${{ matrix.puppet }} STRICT_VARIABLES=yes bundle exec rake spec
48+
49+ - name : Run rubocop tests
50+ run : |
51+ PUPPET_VERSION=${{ matrix.puppet }} bundle exec rake rubocop
52+
53+ test-static-old :
54+ strategy :
55+ fail-fast : false
56+ matrix :
57+ puppet : [5.5.22, 6.29.0]
1558 ruby : [2.5.9, 2.6.9]
1659
1760 name : Static code analysis
18- runs-on : ubuntu-latest
61+ runs-on : ubuntu-20.04
1962 permissions :
2063 contents : read
2164
2265 steps :
23- - uses : actions/checkout@v2
66+ - uses : actions/checkout@v3
2467
2568 - name : Set up Ruby
2669 uses : ruby/setup-ruby@v1
@@ -55,10 +98,10 @@ jobs:
5598 fail-fast : false
5699 matrix :
57100 puppet : [puppet6, puppet7]
58- beakerset : [ubuntu-18.04, ubuntu-20.04, centos-7, debian-10, debian-11]
101+ beakerset : [ubuntu-18.04, ubuntu-20.04, ubuntu-22.04, centos-7, debian-10, debian-11]
59102
60103 name : Integration tests
61- runs-on : ubuntu-latest
104+ runs-on : ubuntu-20.04
62105 permissions :
63106 contents : read
64107
68111 - name : Set up Ruby
69112 uses : ruby/setup-ruby@v1
70113 with :
71- ruby-version : 2.5 .9
114+ ruby-version : 2.6 .9
72115 bundler-cache : true
73116 env :
74117 BEAKER_set : ${{ matrix.beakerset }}
81124 env :
82125 BEAKER_set : ${{ matrix.beakerset }}
83126 BEAKER_PUPPET_COLLECTION : ${{ matrix.puppet }}
84- PUPPET_INSTALL_TYPE : agent
127+ PUPPET_INSTALL_TYPE : agent
0 commit comments