diff options
author | Markus Wüstenberg | 2025-03-05 12:00:11 +0100 |
---|---|---|
committer | GitHub | 2025-03-05 12:00:11 +0100 |
commit | 1e222b67fe5d47aba02827c6746c49a11ba3c743 (patch) | |
tree | 3c421b52fb3e1963776120d3e330509675521e08 /.github/workflows | |
parent | ea676e9a323c7c29b272265a3e19e6f65af397d1 (diff) | |
download | gomponents-1e222b67fe5d47aba02827c6746c49a11ba3c743.tar.lz gomponents-1e222b67fe5d47aba02827c6746c49a11ba3c743.tar.zst gomponents-1e222b67fe5d47aba02827c6746c49a11ba3c743.zip |
Benchmark large document and run in CI (#246)
Fixes #229
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/ci.yml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 795d567..d448f1b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,6 +49,27 @@ jobs: 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 |