Skip to content

Bump golang.org/x/net from 0.10.0 to 0.17.0 in /cli #1931

Bump golang.org/x/net from 0.10.0 to 0.17.0 in /cli

Bump golang.org/x/net from 0.10.0 to 0.17.0 in /cli #1931

name: benchmarks
on:
push:
branches:
- develop
pull_request:
types: [opened, reopened, synchronize]
workflow_dispatch:
permissions:
# deployments permission to deploy GitHub pages website
deployments: write
# contents permission to update benchmark contents in gh-pages branch
contents: write
# see https://github.com/benchmark-action/github-action-benchmark
jobs:
benchmark:
name: Performance regression check
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/setup-go@v4 # default version of go is 1.10
with:
go-version: 1.21.1
- name: Install Carvel Tools
run: ./hack/install-deps.sh
# Run benchmark with `go test -bench` and stores the output to a file
- name: Setup k8s and Run benchmark
run: |
set -e -x
minikube start --driver=docker
eval $(minikube docker-env --shell=bash)
./hack/deploy-test.sh
go test ./test/bench/... -bench=. | tee output.txt
# Download previous benchmark result from cache (if exists)
- name: Download previous benchmark data
uses: actions/cache@v3
with:
path: ./cache
key: ${{ runner.os }}-benchmark
# Run `github-action-benchmark` action
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@29e55772d85cc51b2a291bde13f33ef9014d2d1f
if: github.ref == 'refs/heads/develop'
with:
# What benchmark tool the output.txt came from
tool: 'go'
# Where the output from the benchmark tool is stored
output-file-path: output.txt
# Where the previous data file is stored
external-data-json-path: ./cache/benchmark-data.json
alert-threshold: '125%'
fail-on-alert: true
# GitHub API token to make a commit comment
github-token: ${{ secrets.GITHUB_TOKEN }}
# Enable alert commit comment
comment-on-alert: true
# I don't fully understand but the two storage options are mutually exclusive if they're in the same block
- name: Store Result into Github Pages
uses: benchmark-action/github-action-benchmark@29e55772d85cc51b2a291bde13f33ef9014d2d1f
if: github.ref == 'refs/heads/develop'
with:
tool: 'go'
output-file-path: output.txt
github-token: ${{ secrets.GITHUB_TOKEN }}
# Push and deploy GitHub pages branch automatically
auto-push: true