economize/.gitea/workflows/build.yaml
Sam Fredrickson 046aa14c80
All checks were successful
Build & Test / Main (push) Successful in 13s
Release / Release (push) Successful in 12s
Initial commit.
2024-08-25 19:14:26 -07:00

39 lines
749 B
YAML

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
-
name: Run linter
uses: golangci/golangci-lint-action@v3
with:
version: v1.60.3
-
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