forked from puppetlabs/phoenix-github-actions
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathunit_tests_with_released_puppet_gem.yaml
More file actions
40 lines (34 loc) · 1.06 KB
/
unit_tests_with_released_puppet_gem.yaml
File metadata and controls
40 lines (34 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
name: Unit Tests with released Puppet gem
on: workflow_call
jobs:
unit_tests_with_released_puppet_gem:
name: Puppet${{ matrix.puppet_version }} gem on Ruby ${{ matrix.ruby }} on ${{ matrix.os_type }}
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-2019']
puppet_version: ['7', '8']
include:
- puppet_version: '7'
ruby: '2.7'
- puppet_version: '8'
ruby: '3.1'
- os: 'ubuntu-latest'
os_type: 'Linux'
- os: 'macos-latest'
os_type: 'macOS'
- os: 'windows-2019'
os_type: 'Windows'
runs-on: ${{ matrix.os }}
env:
PUPPET_GEM_VERSION: ~> ${{ matrix.puppet_version }}.0
steps:
- 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 }}
bundler-cache: true
- name: Run unit tests
run: bundle exec rake parallel_spec