Skip to content

fix(test): use go-version in the matrix step #2

fix(test): use go-version in the matrix step

fix(test): use go-version in the matrix step #2

Workflow file for this run

name: Run gopeasant tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ["1.20", "1.21", "1.22"]
steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Install dependencies
run: |
go mod tidy
- name: Run go unit tests
run: |
CGO_ENABLED=0 go clean -testcache && go test . ./testrunner