Bump @eslint/create-config from 1.0.2 to 1.1.0 in /client/web/antrea-… #5
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: | |
pull_request: | |
branches: | |
- main | |
- release-* | |
push: | |
branches: | |
- main | |
- release-* | |
jobs: | |
build: | |
name: Build Go binaries | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check-out code | |
uses: actions/checkout@v4 | |
- name: Set up Go using version from go.mod | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
- name: Build binaries | |
run: | | |
make bin | |
test: | |
name: Run Go unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check-out code | |
uses: actions/checkout@v4 | |
- name: Set up Go using version from go.mod | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
- name: Run unit tests | |
run: | | |
make test | |
tidy: | |
name: Check tidiness | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check-out code | |
uses: actions/checkout@v4 | |
- name: Set up Go using version from go.mod | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
- name: Check tidiness | |
run: | | |
go mod tidy | |
test -z "$(git status --porcelain)" || (echo "you should run 'go mod tidy' and commit the changes"; exit 1) | |
make generate | |
test -z "$(git status --porcelain)" || (echo "you should run 'make generate' and commit the changes"; exit 1) | |
- name: Check copyright headers | |
run: | | |
make check-copyright | |
golangci: | |
name: Run golangci-lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check-out code | |
uses: actions/checkout@v4 | |
- name: Set up Go using version from go.mod | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
- name: Run code linters | |
run: | | |
make golangci |