Skip to content

chore: update go version #40

chore: update go version

chore: update go version #40

Workflow file for this run

name: Tests
on:
pull_request:
paths-ignore:
- "README.md"
push:
branches: [ master ]
paths-ignore:
- "README.md"
permissions:
contents: read
jobs:
unit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ 1.21, 1.22 ]
name: unit tests (go ${{ matrix.go-version }})
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
cache: true
- name: Set up cache
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('go.sum', 'tools/go.sum') }}-${{ matrix.go-version }}
restore-keys: |
${{ runner.os }}-go-
- name: Install tools
run: make tools
- name: Lint source code
run: make lint
- name: Run unit tests
run: make test