Skip to content

Fix cert issue

Fix cert issue #6

---
name: Catalog Diff e2e
"on":
pull_request:
types:
- opened
- synchronize
jobs:
catalog-diff-e2e:
name: "catalog-diff ${{ matrix.hostname }}"
runs-on: ubuntu-latest
container:
image: ghcr.io/obmondo/linuxaid-octocatalog-diff:2.3.1
strategy:
fail-fast: false
matrix:
hostname:
- role-basic-rhel8.e2etesting
- role-basic-rhel9.e2etesting
- role-basic-suse15.e2etesting
- role-basic-ubuntu2204.e2etesting
- role-basic-ubuntu2404.e2etesting
- role-monitoring-rhel8.e2etesting
- role-monitoring-rhel9.e2etesting
- role-monitoring-suse15.e2etesting
- role-monitoring-ubuntu2204.e2etesting
- role-monitoring-ubuntu2404.e2etesting
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Fetch base branch
run: git fetch origin master:master
- name: Run catalog-diff e2e
env:
OCTOCATALOG_DIFF_CONFIG_FILE: ${{ github.workspace }}/.octocatalog-diff.cfg.rb
PUPPET_FACT_DIR: ${{ github.workspace }}/e2e/facts
run: |
# exit 2 = diffs found (expected), only fail on exit 1 (compilation error)
rc=0
bundle exec octocatalog-diff \
--basedir ${{ github.workspace }} \
--enc ${{ github.workspace }}/e2e/enc.rb \
--hiera-config ${{ github.workspace }}/e2e/hiera.yaml \
--output-format json \
--hostname ${{ matrix.hostname }} \
> /tmp/catalog-diff.json || rc=$?
if [ "$rc" -ne 0 ] && [ "$rc" -ne 2 ]; then exit "$rc"; fi
ruby e2e/bin/format_catalog_diff.rb --ci < /tmp/catalog-diff.json