Skip to content

Merge pull request #21 from gqlgo/tagpr-from-v0.3.5 #88

Merge pull request #21 from gqlgo/tagpr-from-v0.3.5

Merge pull request #21 from gqlgo/tagpr-from-v0.3.5 #88

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
release:
types:
- published
- created
- edited
defaults:
run:
shell: bash
jobs:
test:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Cache Go module and build cache
uses: actions/cache@v4
with:
key: go-${{ hashFiles('**/go.sum') }}
path: |
~/go/pkg/mod
restore-keys: |
go-
- name: Test and vet
run: |
go vet ./...
go test -v -race ./...