File tree Expand file tree Collapse file tree 5 files changed +20
-25
lines changed
Expand file tree Collapse file tree 5 files changed +20
-25
lines changed Original file line number Diff line number Diff line change 2828 - name : Deploy docs
2929 run : " mike deploy --push --update-aliases $(grep VERSION mockery-tools.env | cut -d'=' -f 2 | cut -d'.' -f1-2) latest"
3030 env :
31- GOOGLE_ANALYTICS_KEY : ${{ secrets.GOOGLE_ANALYTICS_KEY }}
31+ GOOGLE_ANALYTICS_KEY : ${{ secrets.GOOGLE_ANALYTICS_KEY }}
Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ name: Reusable Go Test
22
33on :
44 workflow_call :
5+ inputs :
6+ ref :
7+ required : false
8+ type : string
9+ default : " "
510
611jobs :
712 test :
1116 os : ["macos-latest", "ubuntu-latest"]
1217 go_vers : ["1.22", "1.23"]
1318 steps :
19+ - uses : actions/checkout@v2
20+ with :
21+ fetch-depth : 0
22+ ref : ${{ inputs.ref }}
23+
1424 - name : Set up Go
1525 uses : actions/setup-go@v2
1626 with :
Original file line number Diff line number Diff line change @@ -7,12 +7,7 @@ permissions:
77 contents : write
88jobs :
99 test :
10- runs-on : ubuntu-latest
11- steps :
12- - uses : actions/checkout@v2
13- with :
14- fetch-depth : 0
15- - uses : ./.github/workflows/reusable-testing.yml
10+ uses : ./.github/workflows/reusable-testing.yml
1611 tag :
1712 runs-on : ubuntu-latest
1813 needs : test
9186 version : " <2"
9287 env :
9388 GITHUB_TOKEN : ${{ secrets.GORELEASER_GITHUB_TOKEN }}
94- HOMEBREW_TAP_TOKEN : ${{ secrets.GORELEASER_HOMEBREW_TAP_TOKEN }}
89+ HOMEBREW_TAP_TOKEN : ${{ secrets.GORELEASER_HOMEBREW_TAP_TOKEN }}
Original file line number Diff line number Diff line change @@ -3,17 +3,13 @@ name: Go Test (manual run)
33on :
44 workflow_dispatch :
55 inputs :
6- tag :
7- description : " Tag to checkout."
6+ ref :
7+ description : " Tag/commit to checkout."
88 type : string
99 required : true
1010
1111jobs :
1212 test :
13- runs-on : ubuntu-latest
14- steps :
15- - uses : actions/checkout@v2
16- with :
17- fetch-depth : 0
18- ref : ${{ github.event.inputs.tag }}
19- - uses : ./.github/workflows/reusable-testing.yml
13+ uses : ./.github/workflows/reusable-testing.yml
14+ with :
15+ ref : ${{ inputs.ref }}
Original file line number Diff line number Diff line change @@ -2,14 +2,8 @@ name: Go Test
22
33on :
44 pull_request :
5- branches : [master, v3]
5+ branches : [ master, v3 ]
66
77jobs :
88 test :
9- runs-on : ubuntu-latest
10- steps :
11- - uses : actions/checkout@v2
12- with :
13- fetch-depth : 0
14- - uses : ./.github/workflows/reusable-testing.yml
15-
9+ uses : ./.github/workflows/reusable-testing.yml
You can’t perform that action at this time.
0 commit comments