upd to opa v1.2.0 #192
Workflow file for this run
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: ci | |
| on: | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| push: | |
| # Publish `main` as Docker `latest` image. | |
| branches: | |
| - main | |
| - release-* | |
| # Run tests for PRs | |
| pull_request: | |
| branches: | |
| - main | |
| - release-* | |
| env: | |
| GO_VERSION: "1.24" | |
| GO_LANGCI_LINT_VERSION: "v1.64.5" | |
| GO_TESTSUM_VERSION: "1.11.0" | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - | |
| uses: actions/checkout@v4 | |
| - | |
| name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| - | |
| name: Lint | |
| uses: golangci/golangci-lint-action@v6 | |
| with: | |
| verify: false | |
| version: ${{ env.GO_LANGCI_LINT_VERSION }} | |
| args: --timeout=10m | |
| - | |
| name: Test Setup | |
| uses: gertd/action-gotestsum@v3.0.0 | |
| with: | |
| gotestsum_version: ${{ env.GO_TESTSUM_VERSION }} | |
| - | |
| name: Test | |
| run: | | |
| gotestsum --format short-verbose -- -count=1 -v -timeout=120s -coverprofile=cover.out -coverpkg=./... ./... | |
| - | |
| name: Upload code coverage | |
| uses: shogo82148/actions-goveralls@v1 | |
| continue-on-error: true | |
| with: | |
| path-to-profile: cover.out |