Skip to content

Proof of concept for a hot-reload test case #398

Proof of concept for a hot-reload test case

Proof of concept for a hot-reload test case #398

Workflow file for this run

name: 🔗 GHA
on: [push, pull_request, merge_group]
concurrency:
group: ci-${{ github.actor }}-${{ github.head_ref || github.run_number }}-${{ github.ref }}-runner
cancel-in-progress: true
jobs:
# First stage: Only static checks, fast and prevent expensive builds from running.
static-checks:
name: 📊 Static Checks
if: '!vars.DISABLE_GODOT_CI'
uses: ./.github/workflows/static_checks.yml
# Second stage: Review code changes
changes:
name: Analyze Changes
needs: static-checks
runs-on: ubuntu-latest
outputs:
sources: ${{ steps.filter.outputs.sources_any_changed }}
scons: ${{ steps.filter.outputs.scons_any_changed }}
cmake: ${{ steps.filter.outputs.cmake_any_changed }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: tj-actions/changed-files@v45
id: filter
with:
files_yaml: |
sources:
- '.github/workflows/*.yml'
- '**/*.py'
- '**/*.cpp'
- '**/*.hpp'
- '**/*.h'
- '**/*.inc'
- 'test/build_profile.json'
- 'gdextension/extension_api.json'
scons:
- '**/SConstruct'
- '**/SCsub'
cmake:
- '**/CMakeLists.txt'
- '**/*.cmake'
- name: echo sources changed
run: |
echo sources ${{ steps.filter.outputs.sources_any_modified }}
echo scons ${{ steps.filter.outputs.scons_any_modified }}
echo cmake ${{ steps.filter.outputs.cmake_any_modified }}
# Third stage: Run all the builds and some of the tests.
ci-scons:
name: 🛠️ SCons CI
needs: changes
if: ${{ needs.changes.outputs.scons == 'true' || needs.changes.outputs.sources == 'true' }}
uses: ./.github/workflows/ci-scons.yml

Check failure on line 60 in .github/workflows/runner.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/runner.yml

Invalid workflow file

error parsing called workflow ".github/workflows/runner.yml" -> "./.github/workflows/ci-scons.yml" (source branch with sha:9b4a13932fa2e9f3377e4ac736234d3c66c8b20d) : (Line: 185, Col: 16): Unrecognized named-value: 'matrix'. Located at position 1 within expression: matrix.test_shell, (Line: 195, Col: 16): Unrecognized named-value: 'matrix'. Located at position 1 within expression: matrix.test_shell, (Line: 206, Col: 16): Unrecognized named-value: 'matrix'. Located at position 1 within expression: matrix.test_shell, (Line: 212, Col: 16): Unrecognized named-value: 'matrix'. Located at position 1 within expression: matrix.test_shell, (Line: 220, Col: 16): Unrecognized named-value: 'matrix'. Located at position 1 within expression: matrix.test_shell, (Line: 232, Col: 16): Unrecognized named-value: 'matrix'. Located at position 1 within expression: matrix.test_shell
ci-cmake:
name: 🛠️ CMake CI
needs: changes
if: ${{ needs.changes.outputs.cmake == 'true' || needs.changes.outputs.sources == 'true' }}
uses: ./.github/workflows/ci-cmake.yml