File tree Expand file tree Collapse file tree 6 files changed +213
-45
lines changed Expand file tree Collapse file tree 6 files changed +213
-45
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ name : ' [Daily] Unit Tests with nightly Puppet gem'
3+
4+ on :
5+ schedule :
6+ - cron : ' 0 5 * * 1-5'
7+
8+ jobs :
9+ daily_unit_tests_with_nightly_puppet_gem :
10+ name : ${{ matrix.os_type }} / Puppet${{ matrix.puppet_version }} gem / Ruby ${{ matrix.ruby }}
11+ strategy :
12+ matrix :
13+ os : [ 'ubuntu-18.04', 'macos-10.15', 'windows-2019' ]
14+ puppet_version : [ 5, 6, 7 ]
15+ include :
16+ - puppet_version : 5
17+ ruby : 2.4
18+ - puppet_version : 6
19+ ruby : 2.5
20+ - puppet_version : 7
21+ ruby : 2.7
22+
23+ - os : ' ubuntu-18.04'
24+ os_type : ' Linux'
25+ env_set_cmd : ' export '
26+ gem_file : ' puppet-latest.gem'
27+ - os : ' macos-10.15'
28+ os_type : ' macOS'
29+ env_set_cmd : ' export '
30+ gem_file : ' puppet-latest-universal-darwin.gem'
31+ - os : ' windows-2019'
32+ os_type : ' Windows'
33+ env_set_cmd : ' $env:'
34+ gem_file : ' puppet-latest-x64-mingw32.gem'
35+
36+ runs-on : ${{ matrix.os }}
37+ steps :
38+ - name : Checkout code
39+ uses : actions/checkout@v2
40+
41+ - name : Install ruby version ${{ matrix.ruby }}
42+ uses : ruby/setup-ruby@v1
43+ with :
44+ ruby-version : ${{ matrix.ruby }}
45+
46+ - name : Install the latest nightly build of puppet${{ matrix.puppet_version }} gem
47+ run : |
48+ curl http://nightlies.puppet.com/downloads/gems/puppet${{ matrix.puppet_version }}-nightly/${{ matrix.gem_file }} --output puppet.gem
49+ gem install puppet.gem -N
50+
51+ - name : Prepare testing environment with bundler
52+ run : |
53+ bundle config set system 'true'
54+ ${{ matrix.env_set_cmd }}PUPPET_GEM_VERSION=$(ruby -e 'puts /puppet\s+\((.+)\)/.match(`gem list -eld puppet`)[1]')
55+ bundle update --jobs 4 --retry 3
56+
57+ - name : Run unit tests
58+ run : bundle exec rake parallel_spec
Original file line number Diff line number Diff line change 1+ ---
2+ name : Static Code Analysis
3+
4+ on :
5+ push :
6+ branches : [ main ]
7+ pull_request :
8+ branches : [ main ]
9+
10+ jobs :
11+ static_code_analysis :
12+ name : Run checks
13+
14+ env :
15+ ruby_version : 2.5
16+ extra_checks : check:symlinks check:git_ignore check:dot_underscore check:test_file
17+
18+ runs-on : ' ubuntu-18.04'
19+ steps :
20+ - name : Checkout current PR code
21+ uses : actions/checkout@v2
22+
23+ - name : Install ruby version ${{ env.ruby_version }}
24+ uses : ruby/setup-ruby@v1
25+ with :
26+ ruby-version : ${{ env.ruby_version }}
27+
28+ - name : Prepare testing environment with bundler
29+ run : bundle update --jobs 4 --retry 3
30+
31+ - name : Run rubocop check
32+ run : bundle exec rake ${{ env.extra_checks }} rubocop
33+
34+ - name : Run syntax check
35+ run : bundle exec rake ${{ env.extra_checks }} syntax syntax:hiera syntax:manifests syntax:templates
36+
37+ - name : Run lint check
38+ run : bundle exec rake ${{ env.extra_checks }} lint
39+
40+ - name : Run metadata_lint check
41+ run : bundle exec rake ${{ env.extra_checks }} metadata_lint
Original file line number Diff line number Diff line change 1+ ---
2+ name : Unit Tests with nightly Puppet gem
3+
4+ on :
5+ push :
6+ branches : [ main ]
7+ pull_request :
8+ branches : [ main ]
9+
10+ jobs :
11+ unit_tests_with_nightly_puppet_gem :
12+ name : ${{ matrix.os_type }} / Puppet${{ matrix.puppet_version }} gem / Ruby ${{ matrix.ruby }}
13+ strategy :
14+ matrix :
15+ os : [ 'ubuntu-18.04', 'macos-10.15', 'windows-2019' ]
16+ puppet_version : [ 5, 6, 7 ]
17+ include :
18+ - puppet_version : 5
19+ ruby : 2.4
20+ - puppet_version : 6
21+ ruby : 2.5
22+ - puppet_version : 7
23+ ruby : 2.7
24+
25+ - os : ' ubuntu-18.04'
26+ os_type : ' Linux'
27+ env_set_cmd : ' export '
28+ gem_file : ' puppet-latest.gem'
29+ - os : ' macos-10.15'
30+ os_type : ' macOS'
31+ env_set_cmd : ' export '
32+ gem_file : ' puppet-latest-universal-darwin.gem'
33+ - os : ' windows-2019'
34+ os_type : ' Windows'
35+ env_set_cmd : ' $env:'
36+ gem_file : ' puppet-latest-x64-mingw32.gem'
37+
38+ runs-on : ${{ matrix.os }}
39+ steps :
40+ - name : Checkout current PR code
41+ uses : actions/checkout@v2
42+
43+ - name : Install ruby version ${{ matrix.ruby }}
44+ uses : ruby/setup-ruby@v1
45+ with :
46+ ruby-version : ${{ matrix.ruby }}
47+
48+ - name : Install the latest nightly build of puppet${{ matrix.puppet_version }} gem
49+ run : |
50+ curl http://nightlies.puppet.com/downloads/gems/puppet${{ matrix.puppet_version }}-nightly/${{ matrix.gem_file }} --output puppet.gem
51+ gem install puppet.gem -N
52+
53+ - name : Prepare testing environment with bundler
54+ run : |
55+ bundle config set system 'true'
56+ ${{ matrix.env_set_cmd }}PUPPET_GEM_VERSION=$(ruby -e 'puts /puppet\s+\((.+)\)/.match(`gem list -eld puppet`)[1]')
57+ bundle update --jobs 4 --retry 3
58+
59+ - name : Run unit tests
60+ run : bundle exec rake parallel_spec
Original file line number Diff line number Diff line change 1+ ---
2+ name : Unit Tests with released Puppet gem
3+
4+ on :
5+ push :
6+ branches : [ main ]
7+ pull_request :
8+ branches : [ main ]
9+
10+ jobs :
11+ unit_tests_with_released_puppet_gem :
12+ name : ${{ matrix.os_type }} / Puppet${{ matrix.puppet_version }} gem / Ruby ${{ matrix.ruby }}
13+ strategy :
14+ matrix :
15+ os : [ 'ubuntu-18.04', 'macos-10.15', 'windows-2019' ]
16+ puppet_version : [ 5, 6 ]
17+ include :
18+ - puppet_version : 5
19+ ruby : 2.4
20+ - puppet_version : 6
21+ ruby : 2.5
22+
23+ - os : ' ubuntu-18.04'
24+ os_type : ' Linux'
25+ - os : ' macos-10.15'
26+ os_type : ' macOS'
27+ - os : ' windows-2019'
28+ os_type : ' Windows'
29+
30+ runs-on : ${{ matrix.os }}
31+ env :
32+ PUPPET_GEM_VERSION : ~> ${{ matrix.puppet_version }}.0
33+ steps :
34+ - name : Checkout current PR code
35+ uses : actions/checkout@v2
36+
37+ - name : Install ruby version ${{ matrix.ruby }}
38+ uses : ruby/setup-ruby@v1
39+ with :
40+ ruby-version : ${{ matrix.ruby }}
41+
42+ - name : Prepare testing environment with bundler
43+ run : |
44+ bundle config set system 'true'
45+ bundle update --jobs 4 --retry 3
46+
47+ - name : Run unit tests
48+ run : bundle exec rake parallel_spec
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11
22# mount_core
33
4+ [ ![ Modules Status] ( https://github.com/puppetlabs/puppetlabs-mount_core/workflows/%5BDaily%5D%20Unit%20Tests%20with%20nightly%20Puppet%20gem/badge.svg?branch=main )] ( https://github.com/puppetlabs/puppetlabs-mount_core/actions )
5+ [ ![ Modules Status] ( https://github.com/puppetlabs/puppetlabs-mount_core/workflows/Static%20Code%20Analysis/badge.svg?branch=main )] ( https://github.com/puppetlabs/puppetlabs-mount_core/actions )
6+ [ ![ Modules Status] ( https://github.com/puppetlabs/puppetlabs-mount_core/workflows/Unit%20Tests%20with%20nightly%20Puppet%20gem/badge.svg?branch=main )] ( https://github.com/puppetlabs/puppetlabs-mount_core/actions )
7+ [ ![ Modules Status] ( https://github.com/puppetlabs/puppetlabs-mount_core/workflows/Unit%20Tests%20with%20released%20Puppet%20gem/badge.svg?branch=main )] ( https://github.com/puppetlabs/puppetlabs-mount_core/actions )
8+
9+
410#### Table of Contents
511
6121 . [ Description] ( #description )
You can’t perform that action at this time.
0 commit comments