Skip to content

perf: switch to json decoder and reduce heap usage (#47) #168

perf: switch to json decoder and reduce heap usage (#47)

perf: switch to json decoder and reduce heap usage (#47) #168

Workflow file for this run

name: ci
on: ["push", "pull_request"]
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: go.mod
cache: true
- run: make update-licenses
- run: go run golang.org/x/tools/cmd/[email protected] -w .
- run: go mod tidy -v
- uses: dominikh/[email protected]
with:
version: "2022.1.1"
install-go: false
- name: Verify repo is up-to-date
run: |
if [ -n "$(git status --porcelain)" ]; then
echo 'Updates required:'
git status
exit 1
fi
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: go.mod
cache: true
- name: Run tests
run: go test -v ./...