mirror of
https://github.com/GoTestTools/gotestfmt-action.git
synced 2026-02-21 15:11:46 +00:00
Remove /tmp directory for artifacts
On MacOS, this results in: ``` Error: Provided rootDirectory /tmp is not a valid directory ``` On Windows this results in: ``` Error: No files were found with the provided path: /tmp/gotest.windows.log. No artifacts will be uploaded. ``` Both seem to be unhappy with `/tmp`, since the workspace is implicitly cleaned up at the end of the workflow, there shouldn't be a need to specify `/tmp`. Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
This commit is contained in:
parent
8476589e0d
commit
d31d8ad0fa
1 changed files with 3 additions and 3 deletions
6
.github/workflows/selftest.yml
vendored
6
.github/workflows/selftest.yml
vendored
|
|
@ -30,18 +30,18 @@ jobs:
|
||||||
if: matrix.os != 'windows'
|
if: matrix.os != 'windows'
|
||||||
working-directory: testdata
|
working-directory: testdata
|
||||||
run: |
|
run: |
|
||||||
go test -json -v ./... 2>&1 | tee /tmp/gotest.${{ matrix.os }}.log | gotestfmt
|
go test -json -v ./... 2>&1 | tee gotest.${{ matrix.os }}.log | gotestfmt
|
||||||
|
|
||||||
- name: Run gotestfmt (Windows)
|
- name: Run gotestfmt (Windows)
|
||||||
if: matrix.os == 'windows'
|
if: matrix.os == 'windows'
|
||||||
working-directory: testdata
|
working-directory: testdata
|
||||||
run: |
|
run: |
|
||||||
go test -json -v ./... 2>&1 | Tee-Object /tmp/gotest.${{ matrix.os }}.log | gotestfmt
|
go test -json -v ./... 2>&1 | Tee-Object gotest.${{ matrix.os }}.log | gotestfmt
|
||||||
|
|
||||||
- name: Upload test log
|
- name: Upload test log
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: test-log-${{ matrix.os }}
|
name: test-log-${{ matrix.os }}
|
||||||
path: /tmp/gotest.${{ matrix.os }}.log
|
path: gotest.${{ matrix.os }}.log
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue