-
Notifications
You must be signed in to change notification settings - Fork 15
56 lines (51 loc) · 1.36 KB
/
bolt_spec.yaml
File metadata and controls
56 lines (51 loc) · 1.36 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
name: BoltSpec
on:
pull_request: {}
push:
branches:
- main
permissions:
contents: read
env:
BOLT_WINRM_USER: roddypiper
BOLT_WINRM_HOST: localhost
BOLT_WINRM_PORT: 5985
BOLT_WINRM_SSL_PORT: 5986
BOLT_WINRM_SMB_PORT: 445
jobs:
tests:
name: Tests
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, windows-latest]
ruby: [3.2]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Cache modules
id: modules
uses: actions/cache@v4
with:
path: modules
key: ${{ runner.os }}-modules-${{ hashFiles('**/Puppetfile') }}
- name: Install modules
if: steps.modules.outputs.cache-hit != 'true'
run: bundle exec r10k puppetfile install
- if: matrix.os == 'ubuntu-22.04'
uses: ./.github/actions/docker_setup
- if: matrix.os == 'windows-latest'
uses: ./.github/actions/windows_agentless_setup
- name: Run tests
if: matrix.os == 'windows-latest'
run: bundle exec rake ci:boltspec:windows
- name: Run tests
if: matrix.os == 'ubuntu-22.04'
run: bundle exec rake ci:boltspec:linux