Skip to content

Commit

Permalink
fix CICD
Browse files Browse the repository at this point in the history
  • Loading branch information
LandonTClipp committed Jan 20, 2025
1 parent a605c4c commit 61aa867
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: documentation
on:
push:
branches: [ v3 ]
branches: [ master, v3 ]
permissions:
contents: write
jobs:
Expand All @@ -28,4 +28,4 @@ jobs:
- name: Deploy docs
run: "mike deploy --push --update-aliases $(grep VERSION mockery-tools.env | cut -d'=' -f 2 | cut -d'.' -f1-2) v3"
env:
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }}
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }}
2 changes: 1 addition & 1 deletion .github/workflows/reusable-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
go-version: ${{ matrix.go_vers }}

- name: Download dependencies
run: go mod download
run: go mod download -x

- name: Test
run: go run github.com/go-task/task/v3/cmd/task test.ci
9 changes: 4 additions & 5 deletions .github/workflows/tag-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ on:
permissions:
contents: write
jobs:
# TODO: temporarily disable testing during alpha development
#test:
# uses: ./.github/workflows/reusable-testing.yml
test:
uses: ./.github/workflows/reusable-testing.yml
tag:
runs-on: ubuntu-latest
#needs: test
needs: test
outputs:
tag_result: ${{ steps.tag.outputs.tag_result }}
requested_version: ${{ steps.tag.outputs.requested_version }}
Expand Down Expand Up @@ -96,4 +95,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
HOMEBREW_TAP_TOKEN: ${{ secrets.GORELEASER_HOMEBREW_TAP_TOKEN }}
GORELEASER_CURRENT_TAG: ${{ needs.tag.outputs.requested_version }}
#GORELEASER_PREVIOUS_TAG: ${{ needs.tag.outputs.previous_version }}
#GORELEASER_PREVIOUS_TAG: ${{ needs.tag.outputs.previous_version }}
2 changes: 1 addition & 1 deletion .github/workflows/testing-dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ jobs:
test:
uses: ./.github/workflows/reusable-testing.yml
with:
ref: ${{ inputs.ref }}
ref: ${{ inputs.ref }}
10 changes: 2 additions & 8 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,8 @@ name: Go Test

on:
pull_request:
branches: [v3]
branches: [ master, v3 ]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: ./.github/workflows/reusable-testing.yml

uses: ./.github/workflows/reusable-testing.yml

0 comments on commit 61aa867

Please sign in to comment.