Skip to content

chore(deps): bump golangci/golangci-lint-action from 5.3.0 to 6.0.0 #300

chore(deps): bump golangci/golangci-lint-action from 5.3.0 to 6.0.0

chore(deps): bump golangci/golangci-lint-action from 5.3.0 to 6.0.0 #300

Workflow file for this run

#
# Pull request check workflow
#
# Runs linter and tests on source branch to check code quality.
#
# see: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
#
name: Check Pull Request
on: [pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- id: go-cache-paths
run: |
echo "::set-output name=go-build::$(go env GOCACHE)"
echo "::set-output name=go-mod::$(go env GOMODCACHE)"
- uses: actions/checkout@v4
- name: Go Build Cache
uses: actions/cache@v4
with:
path: ${{ steps.go-cache-paths.outputs.go-build }}
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
- name: Go Mod Cache
uses: actions/cache@v4
with:
path: ${{ steps.go-cache-paths.outputs.go-mod }}
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
- uses: actions/cache@v4
env:
cache-name: npm-cache
with:
path: "web/node_modules"
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
- name: Install modules
run: yarn
working-directory: ./web
- name: Run ESLint
run: yarn lint
working-directory: ./web
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "^1.21.0"
- name: golangci-lint
uses: golangci/golangci-lint-action@v6.0.0
with:
version: v1.54.2
- run: go version
- run: go test ./...