Skip to content
This repository has been archived by the owner on Sep 30, 2023. It is now read-only.

Bump actions/cache from 2.1.7 to 3.3.2 #189

Bump actions/cache from 2.1.7 to 3.3.2

Bump actions/cache from 2.1.7 to 3.3.2 #189

Workflow file for this run

name: Pull request checks
on:
pull_request:
branches:
- master
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2.1.5
with:
go-version: 1.14.x
- name: Check out code into the Go module directory
uses: actions/checkout@v2.4.0
- uses: actions/cache@v3.3.2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Test
run: go test ./... -coverprofile=coverage.out -covermode=count
- name: Generate coverage HTML
run: go tool cover -html=coverage.out -o coverage.html
- name: Upload raw test coverage data
uses: actions/upload-artifact@v2.3.1
with:
name: test-coverage
path: ./coverage.out
- name: Upload test coverage html
uses: actions/upload-artifact@v2.3.1
with:
name: test-coverage
path: ./coverage.html
golangci-lint:
name: golangci lint
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2.4.0
- name: golangci-lint
uses: reviewdog/action-golangci-lint@v2.0.2
with:
github_token: ${{ secrets.github_token }}