Skip to content

Set -useWarnings default to true #97

Set -useWarnings default to true

Set -useWarnings default to true #97

Workflow file for this run

name: Update benchmark pages
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'
push:
branches:
- main
jobs:
run_benchmark:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
check-latest: true
- name: Install the latest versions of each library
run: go get -u ./... && go mod tidy
- name: Benchmark Go logging libraries
run: go test -bench=. bench/*.go > ${{ runner.temp }}/bench.txt
- name: Verify Go logging libraries
run: go test -v ./verify > ${{ runner.temp }}/verify.txt
- name: Run Server & Get Pages
run: go run cmd/server/*.go -bench=${{ runner.temp }}/bench.txt -verify=${{ runner.temp }}/verify.txt & scripts/pages
- name: Commit Benchmark Results to Repo
uses: EndBug/add-and-commit@v9
with:
message: Update Benchmark Results
commit: '--no-verify'