Bump actions/upload-artifact from 4.3.3 to 4.3.4 #61
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
name: hashicorp/go-multierror/go-multierror | |
on: | |
push: | |
permissions: | |
contents: read | |
jobs: | |
go-fmt: | |
runs-on: ubuntu-latest | |
steps: | |
- run: go version | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 | |
with: | |
go-version-file: go.mod | |
- name: check go fmt | |
run: |- | |
files="$(go fmt ./...)" | |
if [ -n "$files" ]; then | |
echo "The following file(s) do not conform to go fmt:" | |
echo "$files" | |
exit 1 | |
fi | |
linux-tests: | |
runs-on: ubuntu-latest | |
env: | |
TEST_RESULTS_PATH: '/tmp/test-results' | |
strategy: | |
matrix: | |
go-version: | |
- '1.13' # oldest supported; named in go.mod | |
- 'oldstable' | |
- 'stable' | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- uses: autero1/action-gotestsum@7263b9d73912eec65f46337689e59fac865c425f # v2.0.0 | |
with: | |
gotestsum_version: 1.9.0 | |
- run: | | |
go version | |
go env | |
- run: mkdir -p "$TEST_RESULTS_PATH/go-multierror" | |
- name: Run go tests | |
env: | |
PLATFORM: linux | |
REPORT_FILE: ${{ env.TEST_RESULTS_PATH }}/go-multierror/gotestsum-report.xml | |
run: |- | |
gotestsum --format=short-verbose --junitfile ${{ env.REPORT_FILE }} -- -p 2 ./... | |
- uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4 | |
with: | |
path: ${{ env.TEST_RESULTS_PATH }} | |
name: tests-linux-${{ matrix.go-version }} | |
windows-tests: | |
runs-on: windows-latest | |
env: | |
TEST_RESULTS_PATH: 'c:\Users\runneradmin\AppData\Local\Temp\test-results' | |
strategy: | |
matrix: | |
go-version: | |
- '1.13' # oldest supported; named in go.mod | |
- 'oldstable' | |
- 'stable' | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- run: | | |
go version | |
go env | |
- run: git config --global core.autocrlf false | |
- run: go mod download | |
- uses: autero1/action-gotestsum@7263b9d73912eec65f46337689e59fac865c425f # v2.0.0 | |
with: | |
gotestsum_version: 1.9.0 | |
- name: Run go tests | |
env: | |
PLATFORM: win | |
REPORT_FILE: ${{ env.TEST_RESULTS_PATH }}/go-multierror/gotestsum-report.xml | |
run: |- | |
gotestsum.exe --format=short-verbose --junitfile ${{ env.REPORT_FILE }} -- -p 2 ./... | |
- uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4 | |
with: | |
path: ${{ env.TEST_RESULTS_PATH }} | |
name: tests-windows-${{ matrix.go-version }} |