onceover-codequality 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e2d6567dc72f75efc4acbbbc3c114800cbddee6395802b6246c430bfacddfbd
4
- data.tar.gz: 5fe8dcb4d64ebc30a3cd4b799b973e8d35ca79f56ec7e240a8ff4f9aece3f2ad
3
+ metadata.gz: 0e8ddc730ad5af5ea52dd482e03c1c940ba2f4e2dca15ee079dfaa48f1c05b71
4
+ data.tar.gz: 0716d052df17231b01e785f5eb62d123393ead3f85529cba856f847090f77c00
5
5
  SHA512:
6
- metadata.gz: bf59878c32ee30be0a5bb892e6f2b1e0d3e0b14a6c3a8ba8678ee2db70a80a2988ca71bd41dea60d22aa8596eff76e9210cfc2aa60363f2a3085f76383e7ca6c
7
- data.tar.gz: c10ae82cb343809eecbc82607f6c2d9ec895d065c215e75173a61a3ab9a1a94b49ee94c40a3ca9e247afdb5618b0880ac97ba0a8bc4f896668e5421322af4a9a
6
+ metadata.gz: c87a63db606dc594cb9ddc7eb70be9dacb1533cad501a07cd9b346985250cc63bd20782edd9467ba6e0e0d0de3d103100728c5ce1f04560e475fb2cf3b1f7970
7
+ data.tar.gz: 6fbee65f839e1ba86df724291d2e5d0a8df338426cc5d924d4df6eeb7c9584eb3fd898b6def4268c45bcd981abae3bffe4bb2a5e8084de9f25bc541d4070d8ad
@@ -1,3 +1,4 @@
1
+ ---
1
2
  name: 🚦 CI
2
3
 
3
4
  on:
@@ -6,47 +7,57 @@ on:
6
7
  branches:
7
8
  - master
8
9
 
10
+ permissions:
11
+ contents: read
12
+
9
13
  jobs:
10
- rubocop:
14
+ rubocop_and_matrix:
11
15
  runs-on: ubuntu-latest
12
- strategy:
13
- fail-fast: false
14
- matrix:
15
- ruby:
16
- - 3.2
16
+ outputs:
17
+ ruby: ${{ steps.ruby.outputs.versions }}
17
18
  steps:
18
- - uses: actions/checkout@v4
19
- - name: Install Ruby ${{ matrix.ruby }}
19
+ - uses: actions/checkout@v5
20
+ - name: Install Ruby 3.4
20
21
  uses: ruby/setup-ruby@v1
21
22
  with:
22
- ruby-version: "3.2"
23
+ ruby-version: '3.4'
23
24
  bundler-cache: true
24
- - name: Run Rubocop
25
+ - name: Run RuboCop
25
26
  run: bundle exec rake rubocop
26
- unit:
27
+ - id: ruby
28
+ uses: voxpupuli/ruby-version@v1
29
+
30
+ test:
31
+ name: "Ruby ${{ matrix.ruby }} - ${{ matrix.os }}"
32
+ runs-on: ${{ matrix.os }}
33
+ needs: rubocop_and_matrix
27
34
  strategy:
28
35
  fail-fast: false
29
36
  matrix:
37
+ ruby: ${{ fromJSON(needs.rubocop_and_matrix.outputs.ruby) }}
30
38
  os:
31
39
  - ubuntu-24.04
32
40
  - ubuntu-24.04-arm
33
- include:
34
- - ruby: 3.2
35
- runs-on: ${{ matrix.os }}
36
41
  steps:
37
- - uses: actions/checkout@v4
38
- - uses: ruby/setup-ruby@v1
42
+ - uses: actions/checkout@v5
43
+ - name: Setup ruby
44
+ uses: ruby/setup-ruby@v1
39
45
  with:
40
46
  ruby-version: ${{ matrix.ruby }}
41
- bundler-cache: true # runs 'bundle install' and caches installed gems automatically
42
- - name: Run Tests
47
+ bundler-cache: true
48
+ - name: Run tests
43
49
  run: bundle exec rake spec
50
+ - name: Build the gem
51
+ run: gem build --strict --verbose *.gemspec
44
52
 
45
53
  tests:
54
+ if: always()
46
55
  needs:
47
- - rubocop
48
- - unit
49
- runs-on: ubuntu-latest
56
+ - test
57
+ runs-on: ubuntu-24.04
50
58
  name: Test suite
51
59
  steps:
52
- - run: echo Test suite completed
60
+ - name: Decide whether the needed jobs succeeded or failed
61
+ uses: re-actors/alls-green@release/v1
62
+ with:
63
+ jobs: ${{ toJSON(needs) }}
@@ -12,4 +12,4 @@ jobs:
12
12
  name: Labeler
13
13
  runs-on: ubuntu-latest
14
14
  steps:
15
- - uses: actions/labeler@v5
15
+ - uses: actions/labeler@v6
@@ -15,7 +15,7 @@ jobs:
15
15
  name: Build the gem
16
16
  runs-on: ubuntu-24.04
17
17
  steps:
18
- - uses: actions/checkout@v4
18
+ - uses: actions/checkout@v5
19
19
  - name: Install Ruby
20
20
  uses: ruby/setup-ruby@v1
21
21
  with:
@@ -24,7 +24,7 @@ jobs:
24
24
  shell: bash
25
25
  run: gem build --verbose *.gemspec
26
26
  - name: Upload gem to GitHub cache
27
- uses: actions/upload-artifact@v4
27
+ uses: actions/upload-artifact@v5
28
28
  with:
29
29
  name: gem-artifact
30
30
  path: '*.gem'
@@ -39,7 +39,7 @@ jobs:
39
39
  contents: write # clone repo and create release
40
40
  steps:
41
41
  - name: Download gem from GitHub cache
42
- uses: actions/download-artifact@v4
42
+ uses: actions/download-artifact@v6
43
43
  with:
44
44
  name: gem-artifact
45
45
  - name: Create Release
@@ -56,7 +56,7 @@ jobs:
56
56
  packages: write # publish to rubygems.pkg.github.com
57
57
  steps:
58
58
  - name: Download gem from GitHub cache
59
- uses: actions/download-artifact@v4
59
+ uses: actions/download-artifact@v6
60
60
  with:
61
61
  name: gem-artifact
62
62
  - name: Publish gem to GitHub packages
@@ -73,7 +73,7 @@ jobs:
73
73
  id-token: write # rubygems.org authentication
74
74
  steps:
75
75
  - name: Download gem from GitHub cache
76
- uses: actions/download-artifact@v4
76
+ uses: actions/download-artifact@v6
77
77
  with:
78
78
  name: gem-artifact
79
79
  - uses: rubygems/configure-rubygems-credentials@v1.0.0
@@ -92,7 +92,7 @@ jobs:
92
92
  - release-to-rubygems
93
93
  steps:
94
94
  - name: Download gem from GitHub cache
95
- uses: actions/download-artifact@v4
95
+ uses: actions/download-artifact@v6
96
96
  with:
97
97
  name: gem-artifact
98
98
  - name: Install Ruby
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [v1.1.0](https://github.com/voxpupuli/onceover-codequality/tree/v1.1.0) (2025-10-29)
4
+
5
+ [Full Changelog](https://github.com/voxpupuli/onceover-codequality/compare/v1.0.0...v1.1.0)
6
+
7
+ **Implemented enhancements:**
8
+
9
+ - puppet-syntax: Require 7.x [\#49](https://github.com/voxpupuli/onceover-codequality/pull/49) ([bastelfreak](https://github.com/bastelfreak))
10
+ - puppet-lint: Require 5.1 [\#48](https://github.com/voxpupuli/onceover-codequality/pull/48) ([bastelfreak](https://github.com/bastelfreak))
11
+ - Switch to openvox-strings [\#43](https://github.com/voxpupuli/onceover-codequality/pull/43) ([smortex](https://github.com/smortex))
12
+
13
+ **Merged pull requests:**
14
+
15
+ - Generate CI matrix dynamically [\#50](https://github.com/voxpupuli/onceover-codequality/pull/50) ([bastelfreak](https://github.com/bastelfreak))
16
+
3
17
  ## [v1.0.0](https://github.com/voxpupuli/onceover-codequality/tree/v1.0.0) (2025-07-11)
4
18
 
5
19
  [Full Changelog](https://github.com/voxpupuli/onceover-codequality/compare/v0.12.0...v1.0.0)
@@ -1,5 +1,5 @@
1
1
  class Onceover
2
2
  module CodeQuality
3
- VERSION = "1.0.0".freeze
3
+ VERSION = "1.1.0".freeze
4
4
  end
5
5
  end
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.add_development_dependency "rspec", "~> 3.13"
27
27
 
28
28
  spec.add_runtime_dependency 'onceover', '~> 5.0'
29
- spec.add_runtime_dependency 'puppet-lint', '~> 4.3'
30
- spec.add_runtime_dependency 'puppet-strings', '~> 5.0'
31
- spec.add_runtime_dependency 'puppet-syntax', '~> 6.0'
29
+ spec.add_runtime_dependency 'openvox-strings', '>= 5.0', '< 7.0'
30
+ spec.add_runtime_dependency 'puppet-lint', '~> 5.1'
31
+ spec.add_runtime_dependency 'puppet-syntax', '~> 7.0'
32
32
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onceover-codequality
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Ratcliffe
@@ -67,47 +67,53 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '5.0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: puppet-lint
70
+ name: openvox-strings
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '4.3'
75
+ version: '5.0'
76
+ - - "<"
77
+ - !ruby/object:Gem::Version
78
+ version: '7.0'
76
79
  type: :runtime
77
80
  prerelease: false
78
81
  version_requirements: !ruby/object:Gem::Requirement
79
82
  requirements:
80
- - - "~>"
83
+ - - ">="
81
84
  - !ruby/object:Gem::Version
82
- version: '4.3'
85
+ version: '5.0'
86
+ - - "<"
87
+ - !ruby/object:Gem::Version
88
+ version: '7.0'
83
89
  - !ruby/object:Gem::Dependency
84
- name: puppet-strings
90
+ name: puppet-lint
85
91
  requirement: !ruby/object:Gem::Requirement
86
92
  requirements:
87
93
  - - "~>"
88
94
  - !ruby/object:Gem::Version
89
- version: '5.0'
95
+ version: '5.1'
90
96
  type: :runtime
91
97
  prerelease: false
92
98
  version_requirements: !ruby/object:Gem::Requirement
93
99
  requirements:
94
100
  - - "~>"
95
101
  - !ruby/object:Gem::Version
96
- version: '5.0'
102
+ version: '5.1'
97
103
  - !ruby/object:Gem::Dependency
98
104
  name: puppet-syntax
99
105
  requirement: !ruby/object:Gem::Requirement
100
106
  requirements:
101
107
  - - "~>"
102
108
  - !ruby/object:Gem::Version
103
- version: '6.0'
109
+ version: '7.0'
104
110
  type: :runtime
105
111
  prerelease: false
106
112
  version_requirements: !ruby/object:Gem::Requirement
107
113
  requirements:
108
114
  - - "~>"
109
115
  - !ruby/object:Gem::Version
110
- version: '6.0'
116
+ version: '7.0'
111
117
  email:
112
118
  - voxpupuli@groups.io
113
119
  executables: []
@@ -161,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
167
  - !ruby/object:Gem::Version
162
168
  version: '0'
163
169
  requirements: []
164
- rubygems_version: 3.6.7
170
+ rubygems_version: 3.6.9
165
171
  specification_version: 4
166
172
  summary: Lint and syntax validation for onceover
167
173
  test_files: []