2024-08-26 02:03:39 +00:00
|
|
|
name: Build & Test
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- "**"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
Main:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
-
|
|
|
|
name: Set up Go
|
|
|
|
uses: actions/setup-go@v4
|
|
|
|
with:
|
|
|
|
go-version: 1.23.0
|
2024-08-26 02:09:51 +00:00
|
|
|
#-
|
|
|
|
# name: Go vet
|
|
|
|
# run: go vet ./...
|
2024-08-26 02:03:39 +00:00
|
|
|
-
|
|
|
|
name: Run tests
|
|
|
|
run: go test ./...
|
|
|
|
-
|
|
|
|
name: Run GoReleaser
|
|
|
|
uses: goreleaser/goreleaser-action@v5
|
|
|
|
with:
|
|
|
|
distribution: goreleaser
|
|
|
|
version: 2.2.0
|
|
|
|
args: release --clean --snapshot
|
|
|
|
env:
|
|
|
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
|
|
|
GORELEASER_FORCE_TOKEN: gitea
|