File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change 13
13
IMAGE_NAME : ${{ github.repository }}
14
14
15
15
jobs :
16
+ Test :
17
+ runs-on : ubuntu-20.04
18
+ steps :
19
+ - name : Set up Go
20
+ uses : actions/setup-go@v3
21
+ with :
22
+ go-version : 1.22.x
23
+
24
+ - name : Unit Test
25
+ run : |
26
+ make test
27
+ - name : Report
28
+ if : github.actor == 'linuxsuren'
29
+ env :
30
+ CODACY_PROJECT_TOKEN : ${{ secrets.CODACY_PROJECT_TOKEN }}
31
+ run : |
32
+ bash <(curl -Ls https://coverage.codacy.com/get.sh) report --partial --force-coverage-parser go -r coverage.out
33
+ bash <(curl -Ls https://coverage.codacy.com/get.sh) final
34
+
16
35
goreleaser :
17
36
runs-on : ubuntu-20.04
37
+ if : github.ref != 'refs/heads/master'
18
38
steps :
19
39
- name : Checkout
20
40
29
49
with :
30
50
go-version : 1.22.x
31
51
- name : Image Registry Login
32
- if : github.ref != 'refs/heads/master'
33
52
run : |
34
53
docker login --username linuxsuren --password ${{secrets.DOCKER_HUB_PUBLISH_SECRETS}}
35
54
docker login ${{ env.REGISTRY }}/linuxsuren --username linuxsuren --password ${{secrets.GH_PUBLISH_SECRETS}}
41
60
env :
42
61
GITHUB_TOKEN : ${{ secrets.GH_PUBLISH_SECRETS }}
43
62
- name : Upload via oras
44
- if : github.ref != 'refs/heads/master'
45
63
run : |
46
64
export TAG=${{ steps.vars.outputs.tag }}
47
65
cd dist
You can’t perform that action at this time.
0 commit comments