community: allow changing postgres version #3951
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Apps Test Suite | |
on: | |
pull_request: {} | |
jobs: | |
changed-files: | |
name: Generate matrix | |
runs-on: ubuntu-latest | |
outputs: | |
changed-apps: ${{ steps.changed-apps.outputs.changed-apps }} | |
change-count: ${{ steps.changed-apps.outputs.change-count }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Get changed files | |
id: changed-files-json | |
uses: tj-actions/changed-files@v44 | |
with: | |
json: true | |
write_output_files: true | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Matrix Output | |
id: changed-apps | |
run: | | |
out=$(python3 .github/scripts/changed_apps.py) | |
echo "changed-apps=${out}" >> $GITHUB_OUTPUT | |
echo "change-count=$(echo "${out}" | jq -r '.include | length')" >> $GITHUB_OUTPUT | |
- name: Message Generation | |
id: message | |
run: | | |
python3 .github/scripts/message.py > pr-comment.txt | |
if [ "$(cat pr-comment.txt)" != "" ]; then | |
echo "message=true" >> $GITHUB_OUTPUT | |
else | |
echo "message=false" >> $GITHUB_OUTPUT | |
fi | |
- name: Comment PR | |
uses: thollander/actions-comment-pull-request@v3 | |
if: steps.message.outputs.message == 'true' | |
continue-on-error: true | |
with: | |
comment-tag: notify-teams | |
file-path: pr-comment.txt | |
run-apps: | |
name: Run Docker Compose Render/Install | |
needs: changed-files | |
runs-on: ubuntu-latest | |
if: needs.changed-files.outputs.change-count > 0 | |
strategy: | |
matrix: ${{ fromJson(needs.changed-files.outputs.changed-apps) }} | |
fail-fast: false | |
max-parallel: 10 | |
steps: | |
- name: Environment Information | |
run: | | |
echo "====== Docker Info ======" | |
docker info | |
echo "=========================" | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Test | |
shell: bash | |
run: | | |
echo "Testing [${{matrix.train}}/${{matrix.app}}/templates/test_values/${{matrix.test_file}}]" | |
python3 ./.github/scripts/ci.py --train ${{matrix.train}} --app ${{matrix.app}} --test-file ${{matrix.test_file}} |