Skip to content

Update workflows

Update workflows #26

Workflow file for this run

name: test
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
go-version: [1.23.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
-
name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up cache
uses: actions/cache@v3
with:
# In order:
# * Module download cache
# * Build cache (Linux)
# * Build cache (Mac)
# * Build cache (Windows)
path: |
~/go/pkg/mod
~/.cache/go-build
~/Library/Caches/go-build
~\AppData\Local\go-build
key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ matrix.go-version }}-
-
name: Run tests
run: go test ./...