Enhance HTTPserver to support nginx-like header vars and build-in backend pool #3022
This file contains hidden or 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: Test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "**/*.go" | |
| - "**/*.yaml" | |
| - "**/*.sh" | |
| - "go.mod" | |
| - "go.sum" | |
| - ".github/workflows/test.yml" | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| branches: | |
| - main | |
| paths: | |
| - "**/*.go" | |
| - "go.mod" | |
| - "go.sum" | |
| - ".github/workflows/test.yml" | |
| env: | |
| GO_VERSION: "1.24" | |
| jobs: | |
| test-ubuntu: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest] | |
| steps: | |
| - name: Set up Go 1.x.y | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| - name: Checkout codebase | |
| uses: actions/checkout@v3 | |
| - name: Test | |
| shell: bash | |
| run: | | |
| make test TEST_FLAGS="-race -coverprofile=coverage.txt -covermode=atomic" | |
| - name: Upload coverage to Codecov | |
| uses: codecov/[email protected] | |
| with: | |
| file: ./coverage.txt | |
| test-macos: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [macos-latest] | |
| steps: | |
| - name: Set up Go 1.x.y | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| - name: Checkout codebase | |
| uses: actions/checkout@v3 | |
| - name: Test | |
| shell: bash | |
| env: | |
| EASEGRESS_TEST_SKIP_DOCKER: "true" | |
| run: | | |
| make test TEST_FLAGS="-race -coverprofile=coverage.txt -covermode=atomic" | |
| test-win: | |
| runs-on: windows-latest | |
| strategy: | |
| fail-fast: false | |
| steps: | |
| - name: Set up Go 1.x.y | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| - name: Checkout codebase | |
| uses: actions/checkout@v3 | |
| - name: Test | |
| env: | |
| EASEGRESS_TEST_SKIP_DOCKER: "true" | |
| run: | | |
| go mod verify | |
| go mod download | |
| go test -v -gcflags "all=-l" ./pkg/... | |
| integration-test-ubuntu: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| steps: | |
| - name: Set up Go 1.x.y | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| - name: Checkout codebase | |
| uses: actions/checkout@v3 | |
| - name: Test | |
| run: | | |
| make integration_test | |
| test-build-wasmhost: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| steps: | |
| - name: Set up Go 1.x.y | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| - name: Checkout codebase | |
| uses: actions/checkout@v3 | |
| - name: Test | |
| run: | | |
| make wasm |