Bump docker/build-push-action from 5 to 6 #781
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: Test | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [ main ] | |
jobs: | |
ginkgo: | |
name: ginkgo | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-latest, macos-latest ] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '>=1.20.4' | |
cache: false | |
- run: go install github.com/onsi/ginkgo/v2/ginkgo@latest && ginkgo run -r --race --junit-report test-report.xml | |
- name: Publish Test Report | |
uses: mikepenz/action-junit-report@v4 | |
if: always() # always run even if the previous step fails | |
with: | |
report_paths: 'test-report.xml' | |
check_name: 'Ginkgo Test Report (OS: ${{ matrix.os }})' | |
- run: ginkgo run -r --coverprofile=coverage.txt --covermode=atomic | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 |