chore(deps): update terraform terraform-aws-modules/vpc/aws to v5 #15358
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
pull_request: | |
branches: | |
- master | |
- release-* | |
push: | |
branches: | |
- master | |
- release-* | |
jobs: | |
pull: | |
runs-on: ubuntu-24.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
job: | |
- verify | |
- build | |
- test | |
- e2e-examples | |
steps: | |
# the GITHUB_SHA env is not the real commit hash but is the pre-merge commit ID for `pull_request` event, | |
# see https://git.luolix.topmunity/t/github-sha-isnt-the-value-expected/17903/2 | |
# so we checkout the repo with `fetch-depth: 2` and let `codecov/codecov-action` to retrieve the real commit hash. | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
with: | |
path: go/src/github.com/${{ github.repository }} | |
fetch-depth: 2 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go/src/github.com/${{ github.repository }}/go.mod | |
cache-dependency-path: "**/*.sum" | |
- name: Set vars | |
run: | | |
echo "GOCACHE=$(go env GOCACHE)" >> $GITHUB_ENV | |
echo "GOMODCACHE=$(go env GOMODCACHE)" >> $GITHUB_ENV | |
- name: Try to use build cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
${{ env.GOCACHE }} | |
${{ env.GOMODCACHE }} | |
key: ${{ runner.os }}-go-${{ hashFiles(format('go/src/github.com/{0}/**/go.sum', github.repository)) }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: ${{ matrix.job }} | |
run: | | |
# workaround for https://github.com/actions/setup-go/issues/14 | |
export GOPATH=${GITHUB_WORKSPACE}/go | |
export PATH=$PATH:$GOPATH/bin | |
if [[ "$job" == "verify" ]]; then | |
make check-setup check | |
elif [[ "$job" == "build" ]]; then | |
make docker e2e-docker debug-build-docker | |
elif [[ "$job" == "test" ]]; then | |
make test GOFLAGS=-race GO_COVER=y | |
else | |
make $job | |
fi | |
working-directory: ${{ github.workspace }}/go/src/github.com/${{ github.repository }} | |
env: | |
job: ${{ matrix.job }} | |
- name: Upload test coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
flags: unittest | |
working-directory: ${{ github.workspace }}/go/src/github.com/${{ github.repository }} | |
if: ${{ matrix.job == 'test' }} | |
- name: Set up tmate session | |
if: ${{ matrix.job == 'e2e-examples' && failure() }} | |
uses: mxschmitt/action-tmate@v3 | |
timeout-minutes: 60 |