Bump github.com/onsi/ginkgo/v2 from 2.19.0 to 2.19.1 #184
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: | |
push: | |
branches: | |
- main | |
- development | |
pull_request: | |
branches: | |
- main | |
- development | |
jobs: | |
test-cgo: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-latest, macos-latest, windows-latest ] | |
go: [ "1.20", "1.21", "1.22" ] | |
env: | |
COVERAGE_GO_VERSION: "1.22" | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Vet all packages | |
run: | | |
go vet ./... | |
- name: Test all packages | |
run: | | |
go test -timeout 30m ./... -v | |
- name: Test generation of examples | |
run: | | |
go generate ./... | |
- name: Test implementation for coverage | |
if: matrix.os == 'ubuntu-latest' && matrix.go == env.COVERAGE_GO_VERSION | |
run: | | |
go test -timeout 30m `go list ./... | grep -v examples | grep -v generated` -coverpkg=-coverpkg=`go list ./... | grep -v examples | grep -v generated | tr '\n' ','` -coverprofile=coverage.out -covermode=atomic -v | |
- name: Archive code coverage results | |
if: matrix.os == 'ubuntu-latest' && matrix.go == env.COVERAGE_GO_VERSION | |
uses: actions/upload-artifact@v4 | |
with: | |
name: code-coverage-report | |
path: ./coverage.out | |
- name: Upload coverage to Codecov | |
if: matrix.os == 'ubuntu-latest' && matrix.go == env.COVERAGE_GO_VERSION | |
uses: codecov/codecov-action@v4 | |
with: | |
files: coverage.out | |
token: ${{ secrets.CODECOV_TOKEN }} |