datashake/.gitea/workflows/build.yaml
Sam Fredrickson cce2277b99
All checks were successful
Build & Test / Main (push) Successful in 41s
Update dependencies; Go 1.22.
2024-05-05 01:22:45 -07:00

39 lines
748 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.22.2
-
name: Run linter
uses: golangci/golangci-lint-action@v3
with:
version: v1.58
-
name: Run tests
run: go test ./...
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: 1.25.1
args: release --clean --snapshot
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
GORELEASER_FORCE_TOKEN: gitea