Skip to content

Commit

Permalink
fix: re-order buf build to fix mod errors from missing codegen (#147)
Browse files Browse the repository at this point in the history
* Fix go mod errors

* oops...

* oops...

* moved back to v0 tag
  • Loading branch information
dcbickfo authored and brad-rogan committed Dec 1, 2023
1 parent 97c21dd commit 1dcd9c7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions go/deps/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ runs:
path: vendor
key: vendor-cache-${{ hashFiles('go.mod','go.sum') }}
restore-keys: vendor-cache-${{ hashFiles('go.mod','go.sum') }}
- name: Generating protobuf code
if: ${{ hashFiles('buf.gen.yaml') != '' }}
run: buf generate
shell: bash
- name: Run go generate
run: go generate ./...
shell: bash
- name: Setting up private modules access
if: steps.vendor-cache.outputs.cache-hit != 'true'
shell: bash
Expand All @@ -29,13 +36,6 @@ runs:
go mod tidy
git diff --exit-code -- go.mod go.sum
go mod vendor
- name: Generating protobuf code
if: ${{ hashFiles('buf.gen.yaml') != '' }}
run: buf generate
shell: bash
- name: Run go generate
run: go generate ./...
shell: bash
- name: Install mockery
if: ${{ hashFiles('.mockery.yml') != '' }}
run: go install github.com/vektra/mockery/v2
Expand Down
2 changes: 1 addition & 1 deletion go/smoke-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ runs:
go test ./tests/smoke --tags=smoke
shell: bash
- name: Rollback on failure
if: failure() $$ inputs.ROLLBACK_ON_FAIL == 'true'
if: failure() && inputs.ROLLBACK_ON_FAIL == 'true'
run: |
chmod +x ./deploy/build.sh && ./deploy/build.sh service rollback --env=${{ inputs.ENV }}
shell: bash
Expand Down

0 comments on commit 1dcd9c7

Please sign in to comment.