| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- name: Run Configuration tests
- concurrency:
- group: conftest-${{ github.event_name }}-${{ github.ref }}
- cancel-in-progress: true
- on:
- workflow_call:
- inputs:
- builder:
- required: true
- type: string
- permissions:
- contents: read
- jobs:
- run_conf_tests:
- runs-on: ${{ endsWith(github.repository, '/emqx') && 'ubuntu-22.04' || fromJSON('["self-hosted","ephemeral","linux","x64"]') }}
- container: ${{ inputs.builder }}
- strategy:
- fail-fast: false
- matrix:
- profile:
- - emqx
- - emqx-enterprise
- steps:
- - uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
- with:
- name: ${{ matrix.profile }}
- - name: extract artifact
- run: |
- unzip -o -q ${{ matrix.profile }}.zip
- git config --global --add safe.directory "$GITHUB_WORKSPACE"
- - run: cat .env | tee -a $GITHUB_ENV
- - run: make ${{ matrix.profile }}
- - run: ./scripts/test/check-example-configs.sh
- - run: ./scripts/conf-test/run.sh
- - name: print erlang log
- if: failure()
- run: |
- cat _build/${{ matrix.profile }}/rel/emqx/logs/erlang.log.*
- - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
- if: failure()
- with:
- name: conftest-logs-${{ matrix.profile }}
- path: _build/${{ matrix.profile }}/rel/emqx/logs
- retention-days: 7
|