Bump github.com/golangci/golangci-lint from 1.53.3 to 1.54.1 in /tools #1519
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go | |
on: | |
schedule: | |
# run every Sunday | |
- cron: '0 13 * * 0' | |
push: | |
branches: | |
- main | |
- release-0.1x | |
tags: | |
- v[0-9]+.[0-9]+.[0-9]+* | |
pull_request: | |
jobs: | |
build: | |
name: Build | |
strategy: | |
fail-fast: false | |
matrix: | |
image: | |
- mongo:4.2 | |
- mongo:4.4 | |
- mongo:5.0 | |
- percona/percona-server-mongodb:4.2 | |
- percona/percona-server-mongodb:4.4 | |
- percona/percona-server-mongodb:5.0 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: ${{ github.workspace }}/go.mod | |
- name: Initialize dependencies and linters | |
run: make init | |
- name: Diff | |
run: | | |
make format | |
git diff --exit-code | |
- name: Test | |
run: | | |
TEST_MONGODB_IMAGE=${{ matrix.image }} make test-cluster | |
make test-race | |
make test-cluster-clean | |
- name: Run checks/linters | |
run: | | |
# use GITHUB_TOKEN because only it has access to GitHub Checks API | |
bin/golangci-lint run -c=.golangci-required.yml --out-format=line-number | env REVIEWDOG_GITHUB_API_TOKEN=${{ secrets.GITHUB_TOKEN }} bin/reviewdog -f=golangci-lint -level=error -reporter=github-pr-check | |
bin/golangci-lint run -c=.golangci.yml --out-format=line-number | env REVIEWDOG_GITHUB_API_TOKEN=${{ secrets.GITHUB_TOKEN }} bin/reviewdog -f=golangci-lint -level=error -reporter=github-pr-review | |
make check-license |