Skip to content

go mod 1.22

go mod 1.22 #777

Workflow file for this run

on:
- push
- pull_request
name: unit tests
jobs:
unit_tests:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.22.x
- uses: actions/cache@v4
with:
path: |
~/go/pkg/mod # Module download cache
~/.cache/go-build # Build cache (Linux)
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Test
run: go test ./... -v
- name: Check Format
run: '[ "$(gofmt -l ./ | wc -l)" -eq 0 ]'