Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .github/workflows/unit_tests_with_released_puppet_gem.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
---
name: Unit Tests with released Puppet gem

on: workflow_call
on:
workflow_call:
secrets:
PUPPET_FORGE_TOKEN_PUBLIC:
required: true

jobs:
unit_tests_with_released_puppet_gem:
Expand All @@ -25,7 +29,7 @@ jobs:

runs-on: ${{ matrix.os }}
env:
PUPPET_GEM_VERSION: ~> ${{ matrix.puppet_version }}.0
PUPPET_GEM_VERSION: "source:https://rubygems-puppetcore.puppet.com#~> ${{ matrix.puppet_version }}.0"
steps:
- name: Checkout current PR code
uses: actions/checkout@v4
Expand All @@ -35,6 +39,11 @@ jobs:
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
env:
BUNDLE_RUBYGEMS___PUPPETCORE__PUPPET__COM: forge-key:${{ secrets.PUPPET_FORGE_TOKEN_PUBLIC }}

- name: List gems
run: cat Gemfile.lock

- name: Run unit tests
run: bundle exec rake parallel_spec