Skip to content

chore(deps): bump actions/cache from 4.2.3 to 5.0.5 #463

chore(deps): bump actions/cache from 4.2.3 to 5.0.5

chore(deps): bump actions/cache from 4.2.3 to 5.0.5 #463

Workflow file for this run

name: Lint
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
test-go:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v5.0.0
- uses: actions/setup-go@v5
with:
go-version: 1.22.8
- name: Get golangci-lint cache dir
run: |
linter_ver=1.64.8
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v$linter_ver
dir=$(golangci-lint cache status | awk '/Dir/ { print $2 }')
echo "LINT_CACHE_DIR=$dir" >> $GITHUB_ENV
- name: golangci-lint cache
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: |
${{ env.LINT_CACHE_DIR }}
key: golangci-lint-${{ runner.os }}-${{ hashFiles('**/*.go') }}
restore-keys: |
golangci-lint-${{ runner.os }}-
fmt:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v5.0.0
- uses: actions/setup-go@v5
with:
go-version: 1.22.8
- name: make fmt
run: make fmt
- name: Check for unstaged files
run: ./scripts/check_unstaged.sh