Skip to content

Sync templates

Sync templates #27

Workflow file for this run

name: Go
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.22.3' ]
steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
# You can test your matrix by printing the current Go version
- name: Display Go version
run: go version
- name: Clean Go module cache
run: go clean -modcache
- name: Remove go.sum
run: rm go.sum
- name: Tidy up Go modules
run: go mod tidy
- name: Install dependencies
run: go get -u ./...
- 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