diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 488135c8..2ff079a1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -119,6 +119,34 @@ jobs: shell: bash + test-unset-github-output-env: + name: Test unset GITHUB_OUTPUT env + runs-on: ${{ matrix.platform }} + strategy: + fail-fast: false + max-parallel: 4 + matrix: + platform: [ubuntu-latest, ubuntu-22.04, windows-latest, macos-latest, macos-11, ubuntu-18.04, windows-2022] + + steps: + - name: Checkout to branch + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Run changed-files with unset GITHUB_OUTPUT env + id: changed-files + continue-on-error: true + uses: ./ + env: + GITHUB_OUTPUT: "" + + - name: Show output + run: | + echo '${{ toJSON(steps.changed-files.outputs) }}' + shell: + bash + test-single-commit-history: name: Test changed-files single commit history runs-on: ${{ matrix.platform }}