Skip to content

Add GitHub Actions workflow for Go testing #1

Add GitHub Actions workflow for Go testing

Add GitHub Actions workflow for Go testing #1

Workflow file for this run

name: Go Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 'stable'
run: go version
- name: Check out code
uses: actions/checkout@v4
- name: Get dependencies
run: go mod tidy
- name: Test
run: go test -v ./...