24 lines
532 B
YAML
24 lines
532 B
YAML
name: Run Tests
|
|
on:
|
|
push:
|
|
branches:
|
|
- '*'
|
|
- '!benchmark'
|
|
|
|
jobs:
|
|
Test:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
RUNNER_TOOL_CACHE: /opt/hostedtoolcache
|
|
GOMODCACHE: /opt/hostedtoolcache/go/pkg/mod
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
- name: Get Go
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version-file: 'go.mod'
|
|
check-latest: true
|
|
cache: true
|
|
- name: Run tests
|
|
run: go test ./... |