Skip to content

github actions

github actions #15

Workflow file for this run

name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.23.x' ]
steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
# You can test your matrix by printing the current Go version
- name: Display Go version
run: go version
# - name: Set up Go
# uses: actions/setup-go@v2
# with:
# go-version: 1.17
#
- name: Build
run: go build -v ./...
- name: Test
run: go test -v -cover ./...