Add runtime flag to allow disabling config hot-reload (#5079) #3463
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: Benchmark | |
permissions: | |
contents: write | |
deployments: write | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
benchmark: | |
strategy: | |
fail-fast: false | |
matrix: | |
go-version: [1.22.x] | |
node-version: [16.x] | |
platform: [ubuntu-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 | |
with: | |
go-version: ${{ matrix.go-version }} | |
cache: false | |
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: yarn | |
cache-dependency-path: ui/yarn.lock | |
- name: set env vars | |
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH | |
- name: build dev docker image | |
run: | | |
./scripts/build-dev-docker.bash | |
- name: start cluster | |
run: | | |
export POMERIUM_TAG=dev | |
cd ./integration/clusters/single-stateful | |
docker-compose up -d | |
- name: integration tests | |
run: | | |
go test -bench Benchmark ./integration/... | tee benchmark.txt | |
- name: store benchmark | |
uses: benchmark-action/github-action-benchmark@v1 | |
with: | |
tool: "go" | |
output-file-path: benchmark.txt | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
auto-push: true |