Ensure port forwards do not select terminating pods and are ready before use #3913
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: GGII Tests | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
jobs: | |
test_gloo_gateway: | |
name: Build and Test Gloo Gateway | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 10 | |
if: ${{ !github.event.pull_request.draft }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Build | |
run: go build -v ./projects/gateway2/... ./projects/gloo/cli/cmd | |
- name: Install utils for env tests | |
run: make -C ./projects/gateway2/ install-go-tools | |
- name: Test with the Go CLI | |
run: go test ./projects/gateway2/... |