Skip to content

test: workflow commenting #7

test: workflow commenting

test: workflow commenting #7

Workflow file for this run

---
name: CI🚦
on:
pull_request:
branches:
- main
workflow_dispatch:
jobs:
setup-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Source checkout
uses: actions/checkout@v4
- id: set-matrix
run: echo "matrix=$(jq -c . build_versions.json)" >> $GITHUB_OUTPUT
build_test_container:
name: 'Build test container'
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
pull-requests: write
needs: setup-matrix
strategy:
matrix: ${{ fromJson(needs.setup-matrix.outputs.matrix) }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build image
uses: docker/build-push-action@v6
with:
tags: 'ci/test:${{ matrix.puppet_release }}'
push: false
build-args: |
BASE_IMAGE=${{ matrix.base_image }}
tests:
needs:
- build_test_container
runs-on: ubuntu-latest
name: Test suite
steps:
- run: echo Test suite completed
save-pr-number:
runs-on: ubuntu-latest
name: Save PR number
steps:
- name: Save PR number
env:
PR_NUMBER: ${{ github.event.number }}
run: |
mkdir -p ./pr
echo $PR_NUMBER > ./pr/pr_number
- uses: actions/upload-artifact@v4
with:
name: pr_number
path: pr/