From 3f5b80a0f6ffd4d35bb20d573fdaaaa609c78f5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Mo=CC=88ding?= Date: Fri, 15 Nov 2024 16:30:01 +0100 Subject: [PATCH] Fix CI workflow --- .github/workflows/CI.yaml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index c6ec318..13c64ba 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -14,6 +14,7 @@ jobs: check: name: Puppet ${{ matrix.puppet_version }} runs-on: ubuntu-latest + container: puppet/pdk:latest strategy: fail-fast: false @@ -21,15 +22,17 @@ jobs: 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 - uses: puppets-epic-show-theatre/action-pdk-validate@v1 - with: - puppet-version: ${{ matrix.puppet_version }} + run: pdk validate --format=text --puppet-version ${{ matrix.puppet_version }} - name: Run pdk test unit - uses: puppets-epic-show-theatre/action-pdk-test-unit@v1 - with: - puppet-version: ${{ matrix.puppet_version }} + run: pdk test unit --format=text --puppet-version ${{ matrix.puppet_version }}