chore: update goreleaser configuration (#8) #71
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
name: CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: 1.22.x | |
- name: Go version | |
run: go version | |
- name: Install libraries | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y make git | |
- name: Install dependencies | |
run: go mod download | |
- name: Build | |
run: make | |
- name: Lint | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
version: v1.59 | |
report: | |
name: Report | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: 1.22.x | |
- name: Install report card | |
run: | | |
git clone https://github.com/gojp/goreportcard.git | |
cd goreportcard | |
make install | |
go install ./cmd/goreportcard-cli | |
cd .. | |
rm -rf goreportcard | |
- name: Report | |
run: goreportcard-cli -v -t 100 | |
report-card: | |
name: Report Card | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Request Report Update | |
run: | | |
curl -X POST -F "repo=github.com/$GITHUB_REPOSITORY" https://goreportcard.com/checks |