Skip to content

update github actions #127

update github actions

update github actions #127

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.19', '1.20', '1.21','1.22' ]
steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Display Go version
run: go version
- name: Build
run: go build -v
- name: Test
run: go test -v ./...
- name: Self-Format
run: ./go_fmt -rr -d ./...
- name: staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest && staticcheck ./...