Detect unrecognised and malformed template file variables #62
This file contains hidden or 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
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| build-and-test: | |
| strategy: | |
| matrix: | |
| # Also build on Windows since there have been some windows-specific | |
| # problems in the past around line ending style checks. | |
| os: ["ubuntu-latest", "windows-latest"] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: true | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - uses: alire-project/setup-alire@v5 | |
| with: | |
| version: 2.1.0 | |
| toolchain: 'gnat_arm_elf gprbuild' | |
| - name: Generate Runtimes | |
| shell: bash | |
| run: ./generate-runtimes.sh | |
| - name: Build Runtimes | |
| shell: bash | |
| run: | | |
| for dir in install/*/; do | |
| echo "::group::Build $(basename $dir)" | |
| (cd $dir && alr build --validation) | |
| echo "::endgroup::" | |
| done | |
| # Don't run tests on Windows since it's so slow compared to Linux. | |
| # | |
| # Once we've proven that the runtimes can be built on Windows (in the | |
| # above step), there's not much point in also building test apps against | |
| # the runtimes since the Windows and Linux gnat_arm_elf toolchains should | |
| # behave the same at this point, and we're not interested in checking | |
| # for differences in those toolchains here. | |
| - name: Install Test Dependencies | |
| if: ${{ matrix.os != 'windows-latest' }} | |
| run: | | |
| pip install -r tests/requirements.txt | |
| - name: Run tests | |
| if: ${{ matrix.os != 'windows-latest' }} | |
| run: | | |
| cd tests | |
| pytest . -v --junit-xml=reports/runtime-tests.xml | |
| - name: Test Report | |
| uses: dorny/test-reporter@v2.6.0 | |
| if: ${{ !cancelled() && (matrix.os != 'windows-latest') }} # run this step even if previous step failed | |
| with: | |
| name: Runtime Tests | |
| path: tests/reports/*.xml | |
| reporter: java-junit |