Update CHANGELOG.md and bump copyright notices #85
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
# SPDX-FileCopyrightText: 2022-2025 Paul Colby <[email protected]> | |
# SPDX-License-Identifier: MIT | |
name: Automatic Tests | |
on: [push, pull_request] | |
jobs: | |
test-gawk: | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup macOS | |
if: startsWith(matrix.os, 'macos') | |
run: brew install gawk | |
- name: Run tests | |
run: ./test/test.sh | |
shell: bash | |
strategy: | |
matrix: | |
os: | |
- macos-13 | |
- macos-14 | |
- macos-15 | |
- ubuntu-20.04 | |
- ubuntu-22.04 | |
- ubuntu-24.04 | |
- windows-2019 | |
- windows-2022 | |
fail-fast: false | |
test-gh-action: | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup macOS | |
if: startsWith(matrix.os, 'macos') | |
run: brew install gawk | |
- name: Setup Windows | |
if: startsWith(matrix.os, 'windows') | |
run: echo 'EXTRA_DIFF_ARGS=--strip-trailing-cr' >> "$GITHUB_ENV" | |
shell: bash | |
- name: Reset step summary | |
run: '> "$GITHUB_STEP_SUMMARY"' | |
shell: bash | |
- name: Run default action | |
if: ${{ !startsWith(matrix.os, 'macos') }} | |
uses: ./ | |
id: default | |
- name: Check result | |
if: ${{ !startsWith(matrix.os, 'macos') }} | |
run: diff ${EXTRA_DIFF_ARGS:-} --unified ./.github/workflows/expected/default.md "$SUMMARY_FILE" | |
shell: bash | |
env: | |
SUMMARY_FILE: ${{ steps.default.outputs.summary-file }} | |
- name: Reset step summary | |
run: '> "$GITHUB_STEP_SUMMARY"' | |
shell: bash | |
- name: Test path input | |
uses: ./ | |
with: | |
path: >- | |
./test/qtpokit-2554496971/test-results-linux-clang/test/unit/*.tap | |
./test/qtpokit-2554496971/test-results-linux-gcc/test/unit/*.tap | |
id: scalar | |
- name: Check result | |
run: diff ${EXTRA_DIFF_ARGS:-} --unified ./.github/workflows/expected/path.md "$SUMMARY_FILE" | |
shell: bash | |
env: | |
SUMMARY_FILE: ${{ steps.scalar.outputs.summary-file }} | |
- name: Reset step summary | |
run: '> "$GITHUB_STEP_SUMMARY"' | |
shell: bash | |
- name: Test block scalars with new lines | |
uses: ./ | |
with: | |
path: | | |
./test/qtpokit-2554496971/test-results-linux-clang/test/unit/*.tap | |
./test/qtpokit-2554496971/test-results-linux-gcc/test/unit/*.tap | |
id: path | |
- name: Check result | |
run: diff ${EXTRA_DIFF_ARGS:-} --unified ./.github/workflows/expected/path.md "$SUMMARY_FILE" | |
shell: bash | |
env: | |
SUMMARY_FILE: ${{ steps.path.outputs.summary-file }} | |
- name: Reset step summary | |
run: '> "$GITHUB_STEP_SUMMARY"' | |
shell: bash | |
- name: Test summary-file input | |
uses: ./ | |
with: | |
path: >- | |
./test/qtpokit-2554496971/test-results-linux-clang/test/unit/*.tap | |
./test/qtpokit-2554496971/test-results-linux-gcc/test/unit/*.tap | |
summary-file: ${{ runner.temp }}/summary.md | |
- name: Check result | |
run: >- | |
diff ${EXTRA_DIFF_ARGS:-} --unified ./.github/workflows/expected/path.md "$RUNNER_TEMP/summary.md" | |
shell: bash | |
strategy: | |
matrix: | |
os: | |
- macos-13 | |
- macos-14 | |
- macos-15 | |
- ubuntu-20.04 | |
- ubuntu-22.04 | |
- ubuntu-24.04 | |
- windows-2019 | |
- windows-2022 | |
fail-fast: false |