Skip to content

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #38

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #38

Workflow file for this run

name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
vendor:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: 1.14.x
- name: get dependencies
run: go get -v -t -d ./...
- name: vendoring
run: go mod vendor
- uses: actions/upload-artifact@v2
with:
name: repository
path: .
lint:
runs-on: ubuntu-latest
needs: vendor
steps:
- uses: actions/checkout@v2
# https://github.com/golangci/golangci-lint-action#how-to-use
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: latest
test:
runs-on: ubuntu-latest
needs: vendor
steps:
- uses: actions/setup-go@v2
with:
go-version: 1.14.x
- uses: actions/[email protected]
with:
name: repository
path: .
- name: test race
run: go test -v -race ./...
cover:
runs-on: ubuntu-latest
needs: vendor
steps:
- uses: actions/setup-go@v2
with:
go-version: 1.14.x
- uses: actions/[email protected]
with:
name: repository
path: .
- name: take coverage
run: go test -coverprofile=coverage.txt -covermode=count ./...