Skip to content

Merge pull request #41 from neo4j/mjfwebb-patch-1 #71

Merge pull request #41 from neo4j/mjfwebb-patch-1

Merge pull request #41 from neo4j/mjfwebb-patch-1 #71

name: Build and Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.25.0"
- run: go install go.uber.org/mock/mockgen@latest
- name: Cache Go modules
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Download dependencies
run: go mod download
- name: Build
run: go build -v ./...
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v8
with:
version: latest
args: --timeout=1m
- name: Run tests
run: go test -v -race ./...