Skip to content

Commit a4833cc

Browse files
Add github action to verify puppetcore.
Signed-off-by: Gavin Didrichsen <[email protected]>
1 parent a348023 commit a4833cc

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Validate Puppetcore Gem Sources
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
ref:
7+
description: 'Branch, tag or SHA to checkout'
8+
required: true
9+
default: 'main'
10+
11+
jobs:
12+
verify-gemfile:
13+
runs-on: ubuntu-latest
14+
name: Verify Gemfile Dependencies
15+
16+
env:
17+
PUPPET_AUTH_TOKEN: ${{ secrets.PUPPET_AUTH_TOKEN }}
18+
BUNDLE_RUBYGEMS___PUPPETCORE__PUPPET__COM: "forge-key:${{ secrets.PUPPET_AUTH_TOKEN }}"
19+
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
with:
24+
ref: ${{ github.event.inputs.ref }}
25+
26+
- name: Set up Ruby
27+
uses: ruby/setup-ruby@v1
28+
with:
29+
ruby-version: '3.2'
30+
bundler-cache: true
31+
cache-version: 0 # Helps manage cache versions explicitly
32+
working-directory: .
33+
34+
- name: Install dependencies
35+
run: bundle install
36+
37+
- name: Run Gemfile verification test
38+
run: bundle exec rspec spec/support/gemfile_spec.rb --format documentation

0 commit comments

Comments
 (0)