Skip to content

Commit

Permalink
Prevent @actions/core from writing to files in unittests
Browse files Browse the repository at this point in the history
Clearing the github defined variables makes @actions/core print to
stdout instead of writing to the files, which allows the tests to
mock other platforms without the fear of paths breaking.

Signed-off-by: Andrei Horodniceanu <[email protected]>
  • Loading branch information
the-horo committed Jul 14, 2024
1 parent 74aa168 commit ab33f49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
run: |
set -euxo pipefail
npm ci
npm test
GITHUB_ENV= GITHUB_PATH= npm test

0 comments on commit ab33f49

Please sign in to comment.