go-generic/.forgejo/workflows/workflow.yaml
Dan Anglin 4fd8e37f68
chore: update project template
- update the Go version in forgejo workflow
- add a __build directory
- build the binary to the __build directory
- by default, do quick builds (builds without rebuilding all packages)
- add the install target
- add functions to generate the binary's build information
- add a skeleton run function in main.go
2024-05-30 11:51:54 +01:00

37 lines
817 B
YAML

---
on:
pull_request:
types:
- opened
- reopened
- synchronize
jobs:
test:
runs-on: docker
env:
GO_TEST_VERBOSE: "1"
GO_TEST_COVER: "1"
steps:
- name: Checkout Repository
uses: https://code.forgejo.org/actions/checkout@v4
- name: Setup Go
uses: https://code.forgejo.org/actions/setup-go@v5
with:
go-version: '1.22'
- name: Test
run: go run magefiles/main.go -v test
lint:
runs-on: docker
steps:
- name: Checkout Repository
uses: https://code.forgejo.org/actions/checkout@v4
- name: Setup Go
uses: https://code.forgejo.org/actions/setup-go@v5
with:
go-version: '1.22'
- name: Lint
uses: https://github.com/golangci/golangci-lint-action@v3
with:
version: v1.54