fix(keygen): correctly load token for validation
Some checks failed
Cadoles/go-http-peering/pipeline/head There was a failure building this commit

This commit is contained in:
2024-01-05 11:12:27 +01:00
parent db06098fdd
commit b28a87cc5d
4 changed files with 65 additions and 6 deletions

View File

@ -1,6 +1,8 @@
SHELL := /bin/bash
test:
test: go-test keygen-test
go-test:
go clean -testcache
go test -cover -v ./...
@ -36,6 +38,13 @@ gitea-release: .mktools tools/gitea-release/bin/gitea-release.sh release
GITEA_RELEASE_ATTACHMENTS="$$(find release -type f -name '*.tar.gz')" \
tools/gitea-release/bin/gitea-release.sh
keygen-test: tools/bash_unit/bin/bash_unit
tools/bash_unit/bin/bash_unit misc/bash_unit/keygen_test.sh
tools/bash_unit/bin/bash_unit:
mkdir -p tools/bash_unit/bin
cd tools/bash_unit/bin && bash <(curl -s https://raw.githubusercontent.com/pgrange/bash_unit/master/install.sh)
.PHONY: mktools
mktools:
rm -rf .mktools