update-repos/.forgejo/workflows/build.yaml
Thorsten Schubert 54bfdee4ac
All checks were successful
/ build (push) Successful in 41s
Migrate from woodpecker CI to act runner
2024-04-19 02:09:13 +02:00

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 ./...