File tree Expand file tree Collapse file tree 2 files changed +0
-22
lines changed Expand file tree Collapse file tree 2 files changed +0
-22
lines changed Original file line number Diff line number Diff line change 11
11
permissions :
12
12
contents : read
13
13
14
- env :
15
- GOPRIVATE : github.com/upsun/lib-sun
16
-
17
14
jobs :
18
15
19
16
lint :
24
21
with :
25
22
go-version : ' 1.22'
26
23
check-latest : true
27
- - name : Run config private repo
28
- env :
29
- TOKEN : ${{ secrets.MICK_GITHUB_TOKEN }}
30
- run : git config --global url."https://user:${TOKEN}@github.com".insteadOf https://github.com
31
24
- name : Run Go Format
32
25
run : gofmt -s -w . && git diff --exit-code
33
26
- name : Run Go Tidy
47
40
steps :
48
41
- uses : actions/checkout@v4
49
42
- uses : actions/setup-go@v4
50
- - name : Run config private repo
51
- env :
52
- TOKEN : ${{ secrets.MICK_GITHUB_TOKEN }}
53
- run : git config --global url."https://user:${TOKEN}@github.com".insteadOf https://github.com
54
43
- name : Run tests
55
44
run : go test -v -count=1 -race -shuffle=on -coverprofile=coverage.txt ./...
56
45
- name : Go Benchmark
75
64
- uses : actions/setup-go@v4
76
65
with :
77
66
go-version : ' 1.22'
78
- - name : Run config private repo
79
- env :
80
- TOKEN : ${{ secrets.MICK_GITHUB_TOKEN }}
81
- run : git config --global url."https://user:${TOKEN}@github.com".insteadOf https://github.com
82
67
- name : Build
83
68
run : go build -o /dev/null -v ./...
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ permissions:
8
8
contents : write
9
9
packages : write
10
10
11
-
12
11
jobs :
13
12
release-linux-amd64 :
14
13
name : release linux/amd64
17
16
- uses : actions/checkout@v4
18
17
- uses : wangyoucao577/go-release-action@v1
19
18
with :
20
- pre_command : |
21
- echo "machine github.com login ${{ github.actor }} password ${{ secrets.MICK_GITHUB_TOKEN }}" > ~/.netrc
22
- chmod 600 ~/.netrc
23
- git config --global --add url."https://github.com/".insteadOf "ssh://[email protected] /"
24
- git config --global --add url."https://github.com/".insteadOf "[email protected] "
25
- go env -w GOPRIVATE=github.com/upsun/*
26
19
github_token : ${{ secrets.GITHUB_TOKEN }}
27
20
goos : linux
28
21
goarch : amd64
You can’t perform that action at this time.
0 commit comments