CI #18
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: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| CGO_ENABLED: 1 | |
| GO_VERSION: "1.26.2" | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| jobs: | |
| verify: | |
| name: Verify | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: ./.github/actions/setup-go | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| - name: Run verification pipeline | |
| run: make verify | |
| env: | |
| CGO_ENABLED: ${{ env.CGO_ENABLED }} | |
| - name: Upload verification artifacts on failure | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: verify-artifacts | |
| path: | | |
| coverage.out | |
| coverage.html | |
| bin | |
| if-no-files-found: ignore | |
| retention-days: 7 |