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
26 changes: 14 additions & 12 deletions .github/workflows/unit_tests_with_nightly_puppet_gem.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,21 @@ jobs:
name: Puppet${{ matrix.puppet_version }} gem on Ruby ${{ matrix.ruby }} on ${{ matrix.os_type }}
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-2022']
puppet_version: ['7', '8']
os: ['ubuntu-latest', 'windows-2022']
puppet_version: ['8']
include:
- puppet_version: '7'
ruby: '2.7'
- puppet_version: '8'
ruby: '3.1'

- os: 'ubuntu-latest'
os_type: 'Linux'
env_set_cmd: 'export '
gem_file: 'puppet-latest.gem'
- os: 'macos-latest'
os_type: 'macOS'
env_set_cmd: 'export '
gem_file: 'puppet-latest-universal-darwin.gem'
# macos is not yet supported by twingate, see https://github.com/Twingate/github-action/issues/43
# - os: 'macos-latest'
# os_type: 'macOS'
# env_set_cmd: 'export '
# gem_file: 'puppet-latest-universal-darwin.gem'
- os: 'windows-2022'
os_type: 'Windows'
env_set_cmd: '$env:'
Expand All @@ -36,24 +35,27 @@ jobs:

runs-on: ${{ matrix.os }}
steps:
- name: Install twingate
uses: twingate/github-action@v1
with:
service-key: ${{ secrets.TWINGATE_PUBLIC_REPO_KEY }}
- name: Checkout current PR code
uses: actions/checkout@v4

- name: Install ruby version ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Circumvent multi_json 1.16.0 on ruby 2.7
if: ${{ matrix.ruby == '2.7' }}
run: gem install multi_json -v 1.15.0

- name: Install the latest nightly build of puppet${{ matrix.puppet_version }} gem
run: |
${{ matrix.extra_steps }}
curl https://nightlies.puppet.com/downloads/gems/puppet${{ matrix.puppet_version }}-nightly/${{ matrix.gem_file }} --output puppet.gem --location
curl https://artifactory.delivery.puppetlabs.net/artifactory/internal_nightly__local/downloads/gems/puppet${{ matrix.puppet_version }}-nightly/${{ matrix.gem_file }} --output puppet.gem --location
gem install puppet.gem -N

- name: Prepare testing environment with bundler
env:
GEM_SOURCE: "https://artifactory.delivery.puppetlabs.net/artifactory/api/gems/rubygems/"
run: |
git config --global core.longpaths true
bundle config set system 'true'
Expand Down