Debian Codegraph @

.github/workflows/release.yml

raw
1 name: Release
2 on:
3 push:
4 branches:
5 - "2.11.x"
6 - main
7 - next
8 tags-ignore:
9 - '**'
10 pull_request:
11 branches:
12 - '**'
13 workflow_dispatch:
14
15 jobs:
16 test:
17 runs-on: ubuntu-24.04
18 strategy:
19 fail-fast: false
20 matrix:
21 go: ['1.25', '1.26']
22 name: Go ${{ matrix.go }} test
23 steps:
24 - uses: actions/checkout@v7
25 - name: Setup go
26 uses: actions/setup-go@v7
27 with:
28 go-version: ${{ matrix.go }}
29 - run: go test -race -v -coverprofile=profile.cov -coverpkg=./pkg/... ./pkg/...
30 - uses: codecov/[email protected]
31 with:
32 file: ./profile.cov
33 name: codecov-go
34 release:
35 runs-on: ubuntu-24.04
36 needs: [test]
37 if: ${{ github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/next' }}
38 env:
39 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40 steps:
41 - name: Source checkout
42 uses: actions/checkout@v7
43 - name: Semantic Release
44 uses: cycjimmy/semantic-release-action@v6
45 with:
46 dry_run: false
47 semantic_version: 18.0.1
48 extra_plugins: |
49 @semantic-release/[email protected]