Skip to content

ci: bump golangci/golangci-lint-action from 4.0.0 to 5.0.0 #341

ci: bump golangci/golangci-lint-action from 4.0.0 to 5.0.0

ci: bump golangci/golangci-lint-action from 4.0.0 to 5.0.0 #341

Workflow file for this run

name: Run static checks and unit tests
on:
push:
branches:
- main
- v*
pull_request:
branches:
- main
- v*
jobs:
main:
strategy:
matrix:
go-version: ["1.20", "1.21"]
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f
- name: Build
run: make
- name: Run static checks
uses: golangci/golangci-lint-action@82d40c283aeb1f2b6595839195e95c2d6a49081b
with:
version: v1.55.2
args: --config=.golangci.yml --verbose --out-${NO_FUTURE}format colored-line-number
skip-cache: true
- name: Check module tidiness
run: |
go mod tidy -compat=1.20
go mod verify
test -z "$(git status --porcelain)" || (echo "please run 'go mod tidy -compat=1.20', and commit your changes"; exit 1)
- name: Run unit tests
run: make test
cmd:
strategy:
matrix:
go-version: ["1.20", "1.21"]
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f
- name: Build
working-directory: ./cmd
run: make
- name: Run static checks
uses: golangci/golangci-lint-action@82d40c283aeb1f2b6595839195e95c2d6a49081b
with:
working-directory: ./cmd
version: v1.55.2
args: --config=../.golangci.yml --verbose --out-${NO_FUTURE}format colored-line-number
skip-cache: true
- name: Check module tidiness
working-directory: ./cmd
run: |
go mod tidy -compat=1.20
go mod verify
test -z "$(git status --porcelain)" || (echo "please run 'go mod tidy -compat=1.20', and commit your changes"; exit 1)
- name: Run unit tests
working-directory: ./cmd
run: make test
flow:
strategy:
matrix:
go-version: ["1.20", "1.21"]
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f
- name: Build
working-directory: ./flow
run: make
- name: Run static checks
uses: golangci/golangci-lint-action@82d40c283aeb1f2b6595839195e95c2d6a49081b
with:
working-directory: ./flow
version: v1.55.2
args: --config=../.golangci.yml --verbose --out-${NO_FUTURE}format colored-line-number
skip-cache: true
- name: Check module tidiness
working-directory: ./flow
run: |
go mod tidy -compat=1.20
go mod verify
test -z "$(git status --porcelain)" || (echo "please run 'go mod tidy -compat=1.20', and commit your changes"; exit 1)
- name: Run unit tests
working-directory: ./flow
run: make test