mirror of
https://github.com/gogs/gogs.git
synced 2026-01-26 17:19:17 +01:00
db: use context and go-mockgen for AccessTokensStore (#7013)
This commit is contained in:
7
.github/workflows/go.yml
vendored
7
.github/workflows/go.yml
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user