Skip to content

update workflow

update workflow #9

Workflow file for this run

name: unit-tests
on:
push:
pull_request:
branches:
- master
jobs:
build:
name: Build
strategy:
matrix:
goVer: ["1.16.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 }}
id: go
- name: Tests
env:
GO111MODULE: "on"
GOPROXY: "https://proxy.golang.org"
run: go test -v -cpu=1,2 ./...