all repos — gomponents @ 1e222b67fe5d47aba02827c6746c49a11ba3c743

HTML components in pure Go

Benchmark large document and run in CI (#246) Fixes #229

Markus Wüstenberg
commit

1e222b67fe5d47aba02827c6746c49a11ba3c743

parent

ea676e9a323c7c29b272265a3e19e6f65af397d1

1 file changed, 21 insertions(+), 0 deletions(-)

changed files
M .github/workflows/ci.yml.github/workflows/ci.yml
@@ -49,6 +49,27 @@ uses: codecov/codecov-action@v5
with: token: ${{ secrets.CODECOV_TOKEN }} + benchmark: + name: Benchmark + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version-file: go.mod + check-latest: true + + - name: Run Benchmarks + run: | + echo "# Benchmark Results" >> $GITHUB_STEP_SUMMARY + echo '```' >> $GITHUB_STEP_SUMMARY + go test -bench=. ./... 2>&1 | tee -a $GITHUB_STEP_SUMMARY + echo '```' >> $GITHUB_STEP_SUMMARY + lint: name: Lint runs-on: ubuntu-latest