Skip to content

Add version command #119

Add version command

Add version command #119

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.22.x'
- name: Install dependencies
run: go get .
- name: Build Linux
run: GOOS=linux GOARCH=amd64 go build .
- name: Build Windows
run: GOOS=windows GOARCH=amd64 go build .
- name: Build MacOS
run: GOOS=darwin GOARCH=amd64 go build .
- name: Test
run: |
go test -v ./... -covermode=count -coverprofile="coverage.out"
go tool cover -func="coverage.out"
- name: Check format
run: |
if gofmt -e -l . >&1 | grep '^'; then
exit 1
fi