Bump actions/setup-go from 3.5.0 to 4.1.0 #110
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] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go | |
uses: actions/[email protected] | |
with: | |
go-version: 1.13 | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/[email protected] | |
- name: Get dependencies | |
run: | | |
go get -v -t -d ./... | |
go get -u golang.org/x/lint/golint | |
go list -f {{.Target}} golang.org/x/lint/golint | |
- name: Lint | |
run: /home/runner/go/bin/golint ./... | |
- name: Test | |
run: make test | |
- name: Build Release Artifact | |
uses: goreleaser/goreleaser-action@v3 | |
with: | |
distribution: goreleaser | |
version: latest | |
args: release --skip-publish --skip-validate --snapshot | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Upload Artifact | |
uses: actions/[email protected] | |
with: | |
name: dist | |
path: dist |