Skip to content

Updated project to require Golang 1.21 #16

Updated project to require Golang 1.21

Updated project to require Golang 1.21 #16

Workflow file for this run

name: Build and Test
on:
push:
branches:
- master
- develop
pull_request:
branches:
- "**"
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
go: [ '1.21', '1.22', '1.23' ]
name: Go ${{ matrix.go }} sample
steps:
- name: Setup go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Tests
run: go test ./...