Skip to content

Bump actions/cache from 4.0.0 to 4.0.2 #436

Bump actions/cache from 4.0.0 to 4.0.2

Bump actions/cache from 4.0.0 to 4.0.2 #436

Workflow file for this run

name: check
on:
pull_request:
branches: [ master ]
jobs:
check:
name: check
runs-on: ubuntu-latest
steps:
# Set up GOPATH
- name: set up
uses: actions/setup-go@v5
with:
go-version: '1.20'
id: go
# Check out this repository
- name: checkout
uses: actions/checkout@v4
# Store cache
- name: cache
uses: actions/[email protected]
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
# Run golangci-lint using reviewdog
- name: golangci-lint
uses: reviewdog/action-golangci-lint@v2
with:
github_token: ${{ secrets.github_token }}
level: warning
golangci_lint_flags: "--config=.github/.golangci.yml"
reporter: github-pr-review
# Run test
- name: test
run: go test -cover ./...