mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
ci: use new -C flag of Go subcommands
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
parent
e011a20c49
commit
955316c661
2
.github/workflows/codeql.yml
vendored
2
.github/workflows/codeql.yml
vendored
@ -52,7 +52,7 @@ jobs:
|
|||||||
echo "::group::Install go dependencies"
|
echo "::group::Install go dependencies"
|
||||||
mods=$(go list -f '{{.Dir}}' -m | xargs)
|
mods=$(go list -f '{{.Dir}}' -m | xargs)
|
||||||
for mod in $mods; do
|
for mod in $mods; do
|
||||||
(cd "$mod" || exit; go mod download)
|
go mod download -C "$mod"
|
||||||
done
|
done
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
|
|
||||||
|
2
.github/workflows/test-govulncheck.yml
vendored
2
.github/workflows/test-govulncheck.yml
vendored
@ -49,4 +49,4 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
go install golang.org/x/vuln/cmd/govulncheck@6ad3e3d0781578532aaedbed543b25d7d586c746 # v0.0.0-20230110180137-6ad3e3d07815
|
go install golang.org/x/vuln/cmd/govulncheck@6ad3e3d0781578532aaedbed543b25d7d586c746 # v0.0.0-20230110180137-6ad3e3d07815
|
||||||
GOMEMLIMIT=5GiB govulncheck "$(go list -f '{{.Dir}}/...' -m | xargs)"
|
GOMEMLIMIT=5GiB govulncheck "${{ steps.submods.outputs.submods }}"
|
||||||
|
2
.github/workflows/test-tidy.yml
vendored
2
.github/workflows/test-tidy.yml
vendored
@ -63,7 +63,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
mods="${{ steps.submods.outputs.submods }}"
|
mods="${{ steps.submods.outputs.submods }}"
|
||||||
for mod in $mods; do
|
for mod in $mods; do
|
||||||
(cd "$mod"; go mod tidy)
|
go mod tidy -C "$mod"
|
||||||
done
|
done
|
||||||
|
|
||||||
- name: Push changes
|
- name: Push changes
|
||||||
|
Loading…
Reference in New Issue
Block a user