Skip to content

build(deps): Bump golangci/golangci-lint-action from 7 to 8 #7

build(deps): Bump golangci/golangci-lint-action from 7 to 8

build(deps): Bump golangci/golangci-lint-action from 7 to 8 #7

Workflow file for this run

name: go
on:
push:
branches:
- main
tags:
- v*
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' || github.ref_name != 'main' }}
jobs:
gofmt:
name: "check code format"
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- uses: perses/github-actions@v0.9.0
- uses: ./.github/perses-ci/actions/setup_environment
with:
enable_go: true
- name: check format
run: make checkformat
- name: check go.mod
run: make checkunused
test:
name: "tests"
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- uses: perses/github-actions@v0.9.0
- uses: ./.github/perses-ci/actions/setup_environment
with:
enable_go: true
- name: test
run: make test
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- uses: perses/github-actions@v0.9.0
- uses: ./.github/perses-ci/actions/setup_environment
with:
enable_go: true
enable_go_cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v8
with:
version: v2.0
args: --timeout 5m