Skip to content

Merge pull request #7 from bumbacea/dependabot/docker/golang-1.23 #4

Merge pull request #7 from bumbacea/dependabot/docker/golang-1.23

Merge pull request #7 from bumbacea/dependabot/docker/golang-1.23 #4

Workflow file for this run

name: Go
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.21.x', '1.22.x' ]
steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
cache-dependency-path: go.sum
# You can test your matrix by printing the current Go version
- name: Display Go version
run: go version
- name: Install dependencies
run: |
go mod download
- 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