Skip to content

Commit a28a93c

Browse files
authored
Merge pull request #46 from OpenVoxProject/release
Add Vox Pupuli CI defaults; configure release action & .gitignore: Exclude bundle vendor directories
2 parents b557e46 + 6850a26 commit a28a93c

File tree

9 files changed

+64
-17
lines changed

9 files changed

+64
-17
lines changed

.github/release.yml

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,40 @@
1+
---
2+
# https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes
3+
14
changelog:
5+
exclude:
6+
labels:
7+
- duplicate
8+
- invalid
9+
- modulesync
10+
- question
11+
- skip-changelog
12+
- wont-fix
13+
- wontfix
14+
- github_actions
15+
216
categories:
3-
- title: Features & Enhancements
17+
- title: Breaking Changes 🛠
18+
labels:
19+
- backwards-incompatible
20+
21+
- title: New Features 🎉
422
labels:
523
- enhancement
6-
- title: Bug Fixes
24+
25+
- title: Bug Fixes 🐛
726
labels:
827
- bug
28+
29+
- title: Documentation Updates 📚
30+
labels:
31+
- documentation
32+
- docs
33+
34+
- title: Dependency Updates ⬆️
35+
labels:
36+
- dependencies
37+
38+
- title: Other Changes
39+
labels:
40+
- "*"

.github/workflows/acceptance.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Beaker Acceptance Tests
23
run-name: |-
34
Beaker acceptance tests for ${{ inputs.pre-release-build && 'pre-release' || 'release' }} package
@@ -47,7 +48,7 @@ env:
4748
jobs:
4849
acceptance:
4950
name: Acceptance Tests
50-
runs-on: ubuntu-latest
51+
runs-on: ubuntu-24.04
5152
strategy:
5253
matrix:
5354
os:

.github/workflows/backport.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Backport merged pull request
23
on:
34
pull_request_target:
@@ -8,7 +9,7 @@ permissions:
89
jobs:
910
backport:
1011
name: Backport merged pull request
11-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-24.04
1213
# For security reasons, we don't want to checkout and run arbitrary code when
1314
# using the pull_request_target trigger. So restrict this to cases where the
1415
# backport label is applied to an already merged PR.

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Build openvox-agent
23

34
permissions:
@@ -25,4 +26,4 @@ jobs:
2526
ref: ${{ inputs.ref }}
2627
project_name: ${{ inputs.project_name }}
2728
platform_list: ${{ inputs.platform_list }}
28-
secrets: inherit
29+
secrets: inherit

.github/workflows/checks.yaml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Checks
23

34
on:
@@ -12,8 +13,9 @@ permissions:
1213
jobs:
1314
rake_checks:
1415
name: Rake Checks
15-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-24.04
1617
steps:
18+
# needs fetch-depth because the packaging dem reads old git tags
1719
- name: Checkout current PR
1820
uses: actions/checkout@v4
1921
with:
@@ -22,8 +24,12 @@ jobs:
2224
uses: ruby/setup-ruby@v1
2325
with:
2426
ruby-version: 3.3
25-
- name: Update rubygems and install gems
27+
bundler-cache: true
28+
- name: Validate code
2629
run: |
27-
gem update --system --silent --no-document
28-
bundle install --jobs 4 --retry 3
29-
- run: bundle exec rake rubocop --trace
30+
bundle exec rake rubocop
31+
bundle exec rake -T | grep vox:build
32+
bundle exec rake -T | grep vox:promote
33+
bundle exec rake -T | grep vox:tag
34+
bundle exec rake -T | grep vox:upload
35+
bundle exec rake config:print

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
vendor/*
1+
/vendor/*
2+
/.vendor/*
23
output/*
34
.bundle
45
Gemfile.lock

.rubocop.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@ AllCops:
88
- 'resources/**/*.rb'
99
- 'ext/**/*'
1010
- 'vendor/**/*'
11+
- '.vendor/**/*'
1112
- 'bundle/**/*'
1213

14+
plugins:
15+
- rubocop-rake
16+
1317
Layout/ArgumentAlignment:
1418
Enabled: false
1519

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ gem 'rake'
1717
gem 'json'
1818
gem 'octokit'
1919
gem 'rubocop', "~> 1.22"
20+
gem 'rubocop-rake'
2021

2122
eval_gemfile("#{__FILE__}.local") if File.exist?("#{__FILE__}.local")

Rakefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ load './ext/release-lead.rake'
3939

4040
Pkg::Util::RakeUtils.load_packaging_tasks
4141

42-
desc 'run static analysis with rubocop'
43-
task(:rubocop) do
44-
require 'rubocop'
45-
cli = RuboCop::CLI.new
46-
exit_code = cli.run(%w(--display-cop-names --format simple))
47-
raise "RuboCop detected offenses" if exit_code != 0
42+
require 'rubocop/rake_task'
43+
RuboCop::RakeTask.new(:rubocop) do |task|
44+
# These make the rubocop experience maybe slightly less terrible
45+
task.options = ['--display-cop-names', '--display-style-guide', '--extra-details']
46+
# Use Rubocop's Github Actions formatter if possible
47+
task.formatters << 'github' if ENV['GITHUB_ACTIONS'] == 'true'
4848
end
4949

5050
desc "verify that commit messages match CONTRIBUTING.md requirements"

0 commit comments

Comments
 (0)