Skip to content

update CI env vars

update CI env vars #53

Workflow file for this run

name: unit-tests
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
branches: [master]
# ensure testing on actual specified versions, and not auto-upgraded toolchain
# versions
env:
GOTOOLCHAIN: local
jobs:
build:
name: Build
strategy:
matrix:
goVer: ["1.19.x", "1.22.x"]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Src Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Setup Go ${{ matrix.goVer }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.goVer }}
check-latest: true
id: go
- name: Tests
env:
GO111MODULE: "on"
GOPROXY: "https://proxy.golang.org"
run: go test -v -cpu=1,2 ./...