Skip to content

build: Try out GitHub Actions #1

build: Try out GitHub Actions

build: Try out GitHub Actions #1

name: Build & Test
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.20', '1.11', '1.22', '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 }}
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
- name: Code coverage analysis
run: go run github.com/mattn/goveralls@v0.0.11