Skip to content

build(deps): bump the go-modules group with 1 update (#353) #1522

build(deps): bump the go-modules group with 1 update (#353)

build(deps): bump the go-modules group with 1 update (#353) #1522

Workflow file for this run

name: Test
on:
push:
branches:
- master
pull_request:
jobs:
test:
strategy:
matrix:
go:
- "1.20"
- "1.21"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: go mod pakcage cache
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ matrix.go }}-${{ hashFiles('go.mod') }}
- name: Install dependencies
run: go mod tidy
- name: Run tests
run: go test ./...
windows:
strategy:
matrix:
go:
- "1.20"
- "1.21"
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: go mod pakcage cache
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ matrix.go }}-${{ hashFiles('go.mod') }}
- name: Install dependencies
run: go mod tidy
- name: Run tests
run: go test ./...