Skip to content

Commit

Permalink
Add GitHub Action workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bmuschko committed Aug 17, 2024
1 parent 5cc5342 commit 840b729
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build and Publish
on: [push]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.23.x
- name: Build
run: go build
- name: Test
run: go test ./... -coverprofile=coverage.txt -covermode=count
- name: Code Quality Analysis
uses: golangci/golangci-lint-action@v6
with:
version: v1.59
- name: Release
if: startsWith(github.ref, 'refs/tags/')
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: v2.2.0
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 840b729

Please sign in to comment.