Skip to content

Merge branch 'golang:master' into master #37

Merge branch 'golang:master' into master

Merge branch 'golang:master' into master #37

Workflow file for this run

# This workflow will checkout, build, and run the tests for the Go S2 project.
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go Build and Test
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Go
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
with:
# TODO: enable [matrix testing](https://github.com/marketplace/actions/setup-go-environment#matrix-testing)
# so that we can test on both stable, oldstable and the oldest version
# we currently support (as specified in go.mod).
go-version: 'stable'
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...