Skip to content

Commit

Permalink
Adapt workflows;
Browse files Browse the repository at this point in the history
  • Loading branch information
joergdw committed Sep 15, 2023
1 parent 80544d9 commit b5830a4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bosh-release-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
run: |
set -e
export PATH=$PATH:/usr/local/maven/bin
make mod-tidy vendor db scheduler
make go-mod-tidy vendor db scheduler
- name: Build Dev Release
id: build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,14 @@ jobs:
exit 0
fi
# Generated files are needed for `go mod tidy` which is a dependency of the
# target `package-specs`. However the generation of them itself already
# requires go-modules to be tidied up. So we need to generate the files
# before changing `go.mod` and `go.sum`.
declare -r current_branch="$(git branch --show-current)"
git checkout 'HEAD~1'
pushd './src/acceptance/assets/app/go_app'
make generate
popd
make --directory='./src/acceptance/assets/app/go_app' generate-fakes
make --directory='./src/autoscaler' generate-fakes
git checkout "${current_branch}"
make package-specs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tidy-go-mod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
run: git config --global --add safe.directory "${GITHUB_WORKSPACE}"

- name: run go mod tidy on all .mod's
run: make mod-tidy
run: make go-mod-tidy

- name: Check if there is any change
id: get_changes
Expand Down

0 comments on commit b5830a4

Please sign in to comment.