Add benchmark for OGC API Features to measure + improve performance #21
Workflow file for this run
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: test (go) | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
permissions: | |
contents: write | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup cgo dependencies | |
run: sudo apt-get update && sudo apt-get install libcurl4-openssl-dev libssl-dev libsqlite3-mod-spatialite | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21' | |
- name: Download | |
run: go mod download all | |
- name: Build | |
run: go build -v ./... | |
- name: Test | |
run: go test -v -shuffle=on ./... | |
# we don't (yet) fail on benchmark results, these are just to make sure | |
# the benchmarks keep working | |
- name: Benchmark | |
run: go test -v ./... -bench=. -run=^# -benchmem -benchtime=5s | |
- name: Update coverage report | |
uses: ncruces/go-coverage-report@v0 | |
with: | |
report: true | |
chart: false | |
amend: false | |
reuse-go: true | |
if: | | |
github.event_name == 'push' | |
continue-on-error: false |