moonmath/.gitea/workflows/build.yaml

39 lines
747 B
YAML
Raw Permalink Normal View History

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:
2024-09-10 06:48:32 +00:00
go-version: 1.23.1
-
name: Run linter
uses: golangci/golangci-lint-action@v3
with:
2024-09-10 06:55:04 +00:00
version: v1.61
-
name: Run tests
run: go test ./...
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
2024-09-10 06:48:32 +00:00
version: 2.2.0
args: release --clean --snapshot
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
GORELEASER_FORCE_TOKEN: gitea