This repository has been archived by the owner on Sep 30, 2023. It is now read-only.
Bump github.com/hhatto/gocloc from 0.4.2 to 0.5.1 #190
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: 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@v2.1.7 | |
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 }} |