Update module github.com/onsi/gomega to v1.28.1 #114
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: Build and run tests | |
on: [push, pull_request] | |
env: | |
GOTOOLCHAIN: local | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21' | |
check-latest: true | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
# always uses the latest patch version. | |
version: v1.52 | |
args: "--timeout 5m" | |
vulncheck: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21' | |
check-latest: true | |
- name: Install govulncheck | |
run: go install golang.org/x/vuln/cmd/govulncheck@latest | |
- name: Run govulncheck | |
run: govulncheck ./... | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21' | |
check-latest: true | |
- name: Install Ginkgo CLI | |
run: | | |
go install github.com/onsi/ginkgo/v2/[email protected] | |
go install sigs.k8s.io/controller-runtime/tools/[email protected] | |
- name: Run tests | |
run: | | |
make cover -o lint | |
- name: Upload coverage results to coveralls | |
uses: shogo82148/actions-goveralls@v1 | |
with: | |
path-to-profile: coverprofile.out |