Skip to content

Bump goreleaser/goreleaser-action from 2 to 5 #190

Bump goreleaser/goreleaser-action from 2 to 5

Bump goreleaser/goreleaser-action from 2 to 5 #190

Workflow file for this run

on:
push:
branches:
- "master"
pull_request:
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
name: test
runs-on: ${{ matrix.os }}
steps:
- name: Setup Go 1.17.2
uses: actions/setup-go@v2
with:
go-version: 1.17.2
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Vet
run: make vet
- name: Test
run: make test
- name: Lint
if: matrix.os == 'ubuntu-latest'
run: |
go get golang.org/x/lint/golint
export PATH="$PATH:$(go env GOPATH)/bin"
make lint
env:
GO111MODULE: off
- name: Declare some variables
if: matrix.os == 'ubuntu-latest'
id: vars
run: |
echo "::set-output name=coverage_txt::${RUNNER_TEMP}/coverage.txt"
- name: Test Coverage (pkg)
if: matrix.os == 'ubuntu-latest'
run: go test ./... -coverprofile=${{ steps.vars.outputs.coverage_txt }}
- name: Upload coverage
if: matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v3
with:
files: ${{ steps.vars.outputs.coverage_txt }}