Bump dependencies (#52) #213
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: 🤓 Lint | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
generate: | |
name: Generated files up to date | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: { go-version-file: 'go.mod'} | |
- name: Make sure generated files are up to date | |
run: | | |
make generate | |
git diff --no-patch --exit-code | |
if [ $? -ne 0 ]; then | |
echo "Please run make generate and commit the changes." | |
exit 1 | |
fi | |
lint-manifest: | |
name: Manifests up to date | |
runs-on: ubuntu-latest-4-cores | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: { go-version-file: 'go.mod'} | |
- name: Make sure manifest are up to date | |
run: | | |
make manifests | |
git diff --no-patch --exit-code | |
if [ $? -ne 0 ]; then | |
echo "Please run make manifests and commit the changes." | |
exit 1 | |
fi | |
lint-go: | |
name: Go code | |
runs-on: ubuntu-latest-4-cores | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: { go-version-file: 'go.mod'} | |
- name: Make sure go.mod and go.sum are up to date | |
run: | | |
go mod tidy | |
git diff --no-patch --exit-code go.mod go.sum | |
if [ $? -ne 0 ]; then | |
echo "Please run go mod tidy and commit the changes." | |
exit 1 | |
fi | |
- name: Run golangci-lint | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
version: v1.62.0 | |
args: --verbose |