goreleaser: remove duplicate line from changelog #77
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) 2024 Joshua Sing <[email protected]> | |
# Use of this source code is governed by the MIT License, | |
# which can be found in the LICENSE file. | |
# GitHub Actions workflow to build and test. | |
name: "Go" | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
GO_VERSION: "1.23.x" | |
jobs: | |
vulncheck: | |
name: "Vulnerability Check" | |
runs-on: "ubuntu-latest" | |
permissions: | |
contents: read | |
steps: | |
- name: "Checkout repository" | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: "Setup Go ${{ env.GO_VERSION }}" | |
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 | |
with: | |
go-version: "${{ env.GO_VERSION }}" | |
cache: true | |
check-latest: true | |
- name: "Install govulncheck" | |
run: go install golang.org/x/vuln/cmd/govulncheck@latest | |
- name: "Run govulncheck" | |
run: govulncheck ./... | |
build: | |
name: "Build (${{ matrix.os }})" | |
runs-on: "${{ matrix.os }}" | |
permissions: | |
contents: read | |
strategy: | |
matrix: | |
os: ["ubuntu-latest"] | |
steps: | |
- name: "Checkout repository" | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: "Setup Go ${{ env.GO_VERSION }}" | |
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 | |
with: | |
go-version: "${{ env.GO_VERSION }}" | |
cache: true | |
check-latest: true | |
- name: "Download dependencies" | |
run: go mod download | |
- name: "Verify dependencies" | |
run: go mod verify | |
- name: "Build" | |
run: go build ./... | |
- name: "Test" | |
run: go test ./... | |
lint: | |
name: "Lint" | |
runs-on: "ubuntu-latest" | |
permissions: | |
contents: read | |
steps: | |
- name: "Checkout repository" | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
- name: "Setup Go ${{ env.GO_VERSION }}" | |
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 | |
with: | |
go-version: "${{ env.GO_VERSION }}" | |
cache: true | |
check-latest: true | |
- name: "Run golangci-lint" | |
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1 |