pin actions and reduce unnecessary perms & creds (#418) #1010
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 | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
jobs: | |
benchmark-mysql: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
persist-credentials: false | |
- name: Start Tessera | |
run: docker compose -f ./cmd/conformance/mysql/docker/compose.yaml up --build --detach | |
- name: Run benchmark | |
run: go run ./internal/hammer --log_public_key=transparency.dev/tessera/example+ae330e15+ASf4/L1zE859VqlfQgGzKy34l91Gl8W6wfwp+vKP62DW --log_url=http://localhost:2024 --max_read_ops=0 --num_writers=512 --max_write_ops=512 --max_runtime=1m --leaf_write_goal=2500 --show_ui=false | |
- name: Stop Tessera | |
if: ${{ always() }} | |
run: docker compose -f ./cmd/conformance/mysql/docker/compose.yaml down | |
benchmark-posix: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
persist-credentials: false | |
- name: Start Tessera | |
run: docker compose -f ./cmd/conformance/posix/docker/compose.yaml up --build --detach | |
- name: Run benchmark | |
run: go run ./internal/hammer --log_public_key=example.com/log/testdata+33d7b496+AeHTu4Q3hEIMHNqc6fASMsq3rKNx280NI+oO5xCFkkSx --log_url=http://localhost:2025 --max_read_ops=0 --num_writers=512 --max_write_ops=512 --max_runtime=1m --leaf_write_goal=2500 --show_ui=false | |
- name: Stop Tessera | |
if: ${{ always() }} | |
run: docker compose -f ./cmd/conformance/posix/docker/compose.yaml down |