Skip to content

build(deps): bump actions/cache from 3 to 4 #449

build(deps): bump actions/cache from 3 to 4

build(deps): bump actions/cache from 3 to 4 #449

Workflow file for this run

name: linter
on: [pull_request]
jobs:
golangci-lint:
name: runner / golangci-lint
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.18
- name: Install dependencies
run: |
go install golang.org/x/tools/cmd/goimports@latest
make bootstrap
- name: Ensure samples are generated
env:
TZ: Asia/Tokyo
run: |
make gen_samples
clean=$(git status | grep "nothing to commit" || true)
if [ -z "$clean" ]; then
git diff
echo 'Please run "make gen_samples"'
exit 1
fi
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
args: "--config=.github/.golangci.yml"
version: v1.45.0
skip-go-installation: true
skip-pkg-cache: true
skip-build-cache: true