Skip to content

Commit 5afabe7

Browse files
committed
Add basic CI check for ruby packaging code
this validates the Gemfile and Rakefile that will be copied into the build container they provide tasks that will be used to compile ezbake projects and build packages
1 parent 5fdcfb1 commit 5afabe7

File tree

2 files changed

+19
-1
lines changed
  • .github/workflows
  • resources/puppetlabs/lein-ezbake/template/global

2 files changed

+19
-1
lines changed

.github/workflows/pr.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,27 @@ jobs:
3838
lein: latest # Leiningen
3939
- run: lein test
4040

41+
# this validates the Gemfile and Rakefile that will be copied into the build container
42+
# they provide tasks that will be used to compile ezbake projects and build packages
43+
validate-staging-templates:
44+
name: Validate Ruby
45+
runs-on: ubuntu-24.04
46+
steps:
47+
- uses: actions/checkout@v4
48+
- name: Setup ruby
49+
uses: ruby/setup-ruby@v1
50+
with:
51+
ruby-version: '3.2'
52+
bundler-cache: true
53+
working-directory: resources/puppetlabs/lein-ezbake/template/global
54+
- run: bundle env
55+
with:
56+
working-directory: resources/puppetlabs/lein-ezbake/template/global
57+
4158
tests:
4259
needs:
4360
- test
61+
- validate-staging-templates
4462
runs-on: ubuntu-24.04
4563
name: Test suite
4664
steps:

resources/puppetlabs/lein-ezbake/template/global/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
source ENV['GEM_SOURCE'] || 'https://artifactory.delivery.puppetlabs.net/artifactory/api/gems/rubygems/'
1+
source ENV['GEM_SOURCE'] || 'https://rubygems.org/'
22

33
def location_for(place, fake_version = nil)
44
if place =~ /^(git[:@][^#]*)#(.*)/

0 commit comments

Comments
 (0)