Bump github.com/stretchr/testify from 1.11.0 to 1.11.1 (#119) #130
This file contains hidden or 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: Code | |
| on: | |
| push: | |
| tags: | |
| - v* | |
| branches: | |
| - main | |
| - v* | |
| pull_request: | |
| schedule: | |
| - cron: '38 5 * * 3' | |
| concurrency: | |
| group: ${{ format('{0}-{1}', github.workflow, github.head_ref) }} | |
| cancel-in-progress: true | |
| permissions: read-all | |
| jobs: | |
| Lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.5.0 | |
| - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | |
| with: | |
| go-version-file: go.mod # use Go version from go.mod as minimum supported version | |
| - uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0 | |
| with: | |
| version: latest | |
| GoVersions: | |
| name: Lookup Go versions | |
| runs-on: ubuntu-latest | |
| outputs: | |
| matrix: ${{ steps.versions.outputs.matrix }} | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.5.0 | |
| - uses: arnested/go-version-action@81f730770833dd20e6365d535ce7efcb3b136e7d #v1.1.21 | |
| id: versions | |
| UnitTestJob: | |
| runs-on: ubuntu-latest | |
| needs: GoVersions | |
| strategy: | |
| matrix: | |
| go: ${{ fromJSON(needs.GoVersions.outputs.matrix) }} | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.5.0 | |
| - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | |
| with: | |
| go-version: ${{ matrix.go }} | |
| - run: go install github.com/jstemmer/go-junit-report/v2@latest | |
| - run: go test -race -cover -coverprofile=coverage.out -covermode=atomic ./... | |
| - run: go test -json 2>&1 | go-junit-report -parser gojson > junit.xml | |
| if: always() | |
| - name: Upload coverage reports to Codecov | |
| if: ${{ !cancelled() }} | |
| uses: codecov/codecov-action@fdcc8476540edceab3de004e990f80d881c6cc00 # v5.5.0 | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Upload test results to Codecov | |
| if: ${{ !cancelled() }} | |
| uses: codecov/test-results-action@47f89e9acb64b76debcd5ea40642d25a4adced9f # v1.1.1 | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| UnitTests: | |
| if: ${{ always() }} | |
| needs: UnitTestJob | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check status | |
| if: ${{ needs.UnitTestJob.result != 'success' }} | |
| run: exit 1 |