prevent panic that could occur if the db returns a utf-16 string < 2 … #30
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: Build | |
on: [push] | |
jobs: | |
build: | |
name: Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '^1.20' | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
- name: Get dependencies | |
run: | | |
go get -v -t -d ./... | |
- name: Test | |
env: | |
GOPROXY: "https://proxy.golang.org" | |
run: | | |
go test -v ./ ./internal/cache -covermode=count -coverprofile=coverage.out | |
go tool cover -func=coverage.out -o=coverage.out |