Skip to content

Add GA Actions workflows for build and release pipelines #6

Add GA Actions workflows for build and release pipelines

Add GA Actions workflows for build and release pipelines #6

Workflow file for this run

name: build
on:
push:
branches:
- '*'
pull_request: {}
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
- run: "go vet ./..."
- name: Lint
uses: dominikh/[email protected]
with:
version: "2022.1.3"
snapshot-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
- name: Set GOLANG_VERSION
run: |
echo "GOLANG_VERSION=$(go version | awk '{ print $3 }')" >> $GITHUB_ENV
- name: Snapshot Build
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --snapshot --skip=publish --clean