25 lines
611 B
YAML
25 lines
611 B
YAML
on:
|
|
push:
|
|
paths-ignore:
|
|
- "**/*.md"
|
|
- "CHANGELOG"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: docker
|
|
steps:
|
|
- name: Deep clone repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: '>=1.22'
|
|
check-latest: true
|
|
- name: Build
|
|
run: go build -v -ldflags="-s -w -X main.VERSION=$(git describe --tags --long)" .
|
|
- name: Verify executable
|
|
run: ./${{ github.event.repository.name }} -version
|
|
- name: Run tests
|
|
run: go test -v ./...
|