Bump actions/upload-artifact from 3 to 4 #15
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: Go | |
on: [pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go-version: [ '1.19', '1.20', '1.21.x' ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go ${{ matrix.go-version }} | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
# You can test your matrix by printing the current Go version | |
- name: Display Go version | |
run: go version | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21.x' | |
- name: Install dependencies | |
run: | | |
go get . | |
- name: Build | |
run: go build -v ./... | |
- name: Test with the Go CLI | |
run: go test -v ./... | |
- name: Test with Go | |
run: go test -json > TestResults-${{ matrix.go-version }}.json | |
- name: Upload Go test results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Go-results-${{ matrix.go-version }} | |
path: TestResults-${{ matrix.go-version }}.json |