Skip to content

Commit 2eae881

Browse files
committed
fix CICD
1 parent 26d2397 commit 2eae881

File tree

5 files changed

+20
-25
lines changed

5 files changed

+20
-25
lines changed

.github/workflows/documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ jobs:
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 }}

.github/workflows/reusable-testing.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: Reusable Go Test
22

33
on:
44
workflow_call:
5+
inputs:
6+
ref:
7+
required: false
8+
type: string
9+
default: ""
510

611
jobs:
712
test:
@@ -11,6 +16,11 @@ jobs:
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:

.github/workflows/tag-and-release.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,7 @@ permissions:
77
contents: write
88
jobs:
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
@@ -91,4 +86,4 @@ jobs:
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 }}

.github/workflows/testing-dispatch.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,13 @@ name: Go Test (manual run)
33
on:
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

1111
jobs:
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 }}

.github/workflows/testing.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,8 @@ name: Go Test
22

33
on:
44
pull_request:
5-
branches: [master, v3]
5+
branches: [ master, v3 ]
66

77
jobs:
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

0 commit comments

Comments
 (0)