Skip to content

chore(Makefile): consolidate to single download-envoy; drop ENVOY_VER… #6

chore(Makefile): consolidate to single download-envoy; drop ENVOY_VER…

chore(Makefile): consolidate to single download-envoy; drop ENVOY_VER… #6

Workflow file for this run

name: ci
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
# SHAs pinned to latest tags as of 2026-05-22:
# actions/checkout@v6.0.2 de0fac2e4500dabe0009e67214ff5f5447ce83dd
# actions/setup-go@v6.4.0 4a3601121dd01d1626a1e23e37211e3254c1c06c
# actions/cache@v5.0.5 27d5ce7f107fe9357f9df03efb73ab90386fccae
# golangci-lint pinned in tools/go.mod via `tool` directive
env:
CGO_ENABLED: "1"
jobs:
# ---------------------------------------------------------------------------
# lint: make format-check + make lint (covers root and examples modules)
# ---------------------------------------------------------------------------
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
- run: make format-check
- run: make lint
# ---------------------------------------------------------------------------
# test: make vet + make test (root) + examples unit tests
# ---------------------------------------------------------------------------
test:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
- run: make vet
- run: make test
- name: examples unit tests
run: cd examples && GOWORK=off go test ./...
# ---------------------------------------------------------------------------
# e2e: all integration test suites against dev Envoy
# Cache key is the hash of down/abi_impl/VERSION so the binary refreshes
# automatically whenever make update-sdk bumps the SDK commit.
# ---------------------------------------------------------------------------
e2e:
name: e2e
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
- name: cache envoy
id: cache-envoy
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: .bin/envoy
key: envoy-dev-${{ hashFiles('down/abi_impl/VERSION') }}-linux-amd64
- name: download envoy
if: steps.cache-envoy.outputs.cache-hit != 'true'
run: make download-envoy
- run: make e2e
- run: make e2e-hello
- run: make e2e-sse-tap
- run: make e2e-request-ui
- run: make e2e-lb-policy