grafana: use v2 #3739
Workflow file for this run
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 | |
# env: | |
# CHANGED_FILES: ${{ steps.changed-files-json.outputs.all_changed_files }} | |
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 | |
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}} |