-
Notifications
You must be signed in to change notification settings - Fork 7
38 lines (29 loc) · 846 Bytes
/
CI.yaml
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
# CI.yaml --- Check Puppet module
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
check:
name: Puppet ${{ matrix.puppet_version }}
runs-on: ubuntu-latest
container: puppet/pdk:latest
strategy:
fail-fast: false
matrix:
puppet_version: [7, 8]
steps:
- name: Install build-essential
run: |
export DEBIAN_FRONTEND=noninteractive
apt-get --yes update
apt-get --yes install build-essential
- name: Clone repository
uses: actions/checkout@v4
- name: Run pdk validate
run: pdk validate --format=text --puppet-version ${{ matrix.puppet_version }}
- name: Run pdk test unit
run: pdk test unit --format=text --puppet-version ${{ matrix.puppet_version }}