Skip to content

ci: bump golangci/golangci-lint-action from 5.3.0 to 6.0.0 #358

ci: bump golangci/golangci-lint-action from 5.3.0 to 6.0.0

ci: bump golangci/golangci-lint-action from 5.3.0 to 6.0.0 #358

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@cdcb36043654635271a94b9a6d1392de5bb323a7
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
- name: Build
run: make
- name: Run static checks
uses: golangci/golangci-lint-action@23faadfdeb23a6f9e511beaba149bb123b5b145a
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@cdcb36043654635271a94b9a6d1392de5bb323a7
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
- name: Build
working-directory: ./cmd
run: make
- name: Run static checks
uses: golangci/golangci-lint-action@23faadfdeb23a6f9e511beaba149bb123b5b145a
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@cdcb36043654635271a94b9a6d1392de5bb323a7
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
- name: Build
working-directory: ./flow
run: make
- name: Run static checks
uses: golangci/golangci-lint-action@23faadfdeb23a6f9e511beaba149bb123b5b145a
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