Skip to content

run benchmarks

run benchmarks #17

Workflow file for this run

name: 2023 tests
on:
push:
branches: [ "main" ]
paths:
- "2023/**"
pull_request:
branches: [ "main" ]
paths:
- "2023/**"
workflow_dispatch:
branches: [ "main" ]
defaults:
run:
working-directory: "2023"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: "2023/go.mod"
- name: Install dependencies
run: go install github.com/jstemmer/go-junit-report/v2@latest
- name: Test
run: go test -v -tags testing 2>&1 2023/... | go-junit-report -set-exit-code -subtest-mode exclude-parents > ./report.xml
- name: Unit Test Results
uses: dorny/test-reporter@v1
if: always()
with:
name: 2023 test results
path: 2023/report.xml
reporter: java-junit
- name: Run benchmark
run: go test -bench . -benchmem | tee output.txt

Check failure on line 45 in .github/workflows/2023.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/2023.yml

Invalid workflow file

You have an error in your yaml syntax on line 45
- name: Download previous benchmark data
uses: actions/cache@v3
with:
path: ./cache
key: ${{ runner.os }}-benchmark
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
tool: 'go'
output-file-path: output.txt
external-data-json-path: ./cache/benchmark-data.json
github-token: ${{ secrets.GITHUB_TOKEN }}
summary-always: true