Skip to content

Fix go releaser and github actions #26

Fix go releaser and github actions

Fix go releaser and github actions #26

Workflow file for this run

name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
id: go
uses: actions/setup-go@v5
with:
go-version: ^1.21
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Check GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: v2
args: check
-
name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Compile
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: v2
args: build --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Test
run: go test -v .