db: use context and go-mockgen for AccessTokensStore (#7013)

This commit is contained in:
Joe Chen
2022-06-06 12:10:36 +08:00
committed by GitHub
parent 4cc3000b07
commit 0a92ad27ef
14 changed files with 927 additions and 304 deletions

View File

@@ -38,17 +38,20 @@ jobs:
args: --timeout=30m
- name: Install Task
uses: arduino/setup-task@v1
- name: Install goimports and go-mockgen
run: |
go install github.com/derision-test/go-mockgen/cmd/go-mockgen@latest
go install golang.org/x/tools/cmd/goimports@latest
- name: Check Go module tidiness and generated files
shell: bash
run: |
go mod tidy
task generate
task generate-schemadoc
STATUS=$(git status --porcelain)
if [ ! -z "$STATUS" ]; then
echo "Unstaged files:"
echo $STATUS
echo "Run 'go mod tidy', 'task generate' or 'task generate-schemadoc' and commit them"
echo "Run 'go mod tidy' or 'task generate' commit them"
exit 1
fi