Skip to content

add develop script to view and update test data #26594

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 32 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
f76b691
add develop script to view and update test data
a1012112796 Aug 19, 2023
615ccbb
add auto updated files
a1012112796 Aug 19, 2023
52f9ebd
help docs
a1012112796 Aug 19, 2023
81ca323
Revert "add auto updated files"
a1012112796 Aug 21, 2023
09f0dbc
new fixture generation
a1012112796 Aug 22, 2023
4a8045e
Merge remote-tracking branch 'origin/main' into zzc/dev/test_dev
a1012112796 Sep 3, 2023
0727a65
genereated new fixtures
a1012112796 Sep 3, 2023
10474e5
fix lint
a1012112796 Sep 3, 2023
e41cfbc
fix nits
a1012112796 Sep 3, 2023
9bfbd60
fix nits
a1012112796 Sep 3, 2023
9de158b
fix git hooks usage
a1012112796 Sep 3, 2023
c064815
fix test
a1012112796 Sep 3, 2023
5cd7cd0
fix []byte generation in DefaultFixtureDumper
a1012112796 Sep 4, 2023
a40a073
fix []string generation
a1012112796 Sep 6, 2023
265acf9
try fix ActionTask generation
a1012112796 Sep 7, 2023
3b3e51b
Merge remote-tracking branch 'origin/main' into zzc/dev/test_dev
a1012112796 Sep 7, 2023
8a7ae77
add ci check for test-dev
a1012112796 Sep 7, 2023
14f99ed
Merge remote-tracking branch 'origin/main' into zzc/dev/test_dev
a1012112796 Sep 8, 2023
147da5f
fix build
a1012112796 Sep 8, 2023
507b75a
always disable git hook
a1012112796 Sep 9, 2023
56dd204
more security update
a1012112796 Sep 9, 2023
7e1a1bf
make fmt
a1012112796 Sep 9, 2023
884bb85
wonder the changes
a1012112796 Sep 9, 2023
5e5ceed
Merge remote-tracking branch 'origin/main' into zzc/dev/test_dev
a1012112796 Sep 9, 2023
0e1f330
Revert "wonder the changes"
a1012112796 Sep 9, 2023
7b05c25
fix ci
a1012112796 Sep 9, 2023
ecf2a74
simplify extern dunmper interface
a1012112796 Sep 10, 2023
3048b38
Merge remote-tracking branch 'origin/main' into zzc/dev/test_dev
a1012112796 Sep 10, 2023
ca01f6a
make fmt
a1012112796 Sep 10, 2023
98f6e1f
Merge branch 'main' into zzc/dev/test_dev
a1012112796 Sep 14, 2023
19449e6
regenerate new data
a1012112796 Sep 14, 2023
256c2ee
remove `proc-receive.d` also
a1012112796 Sep 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/pull-compliance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,3 +177,15 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
- run: make lint-actions

test-dev-check:
if: needs.files-changed.outputs.backend == 'true'
needs: files-changed
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "~1.21"
check-latest: true
- run: make test-dev-ci-check
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,5 @@ prime/

# Manpage
/man

/tests/dev
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ TEST_MSSQL_HOST ?= mssql:1433
TEST_MSSQL_DBNAME ?= gitea
TEST_MSSQL_USERNAME ?= sa
TEST_MSSQL_PASSWORD ?= MwantsaSecurePassword1
TEST_DEV_ADDR ?= localhost

.PHONY: all
all: build
Expand Down Expand Up @@ -518,6 +519,20 @@ generate-ini-sqlite:
-e 's|{{TEST_TYPE}}|$(or $(TEST_TYPE),integration)|g' \
tests/sqlite.ini.tmpl > tests/sqlite.ini

generate-ini-dev:
sed -e 's|{{GITEA_ROOT}}|${CURDIR}|g' -e 's|{{GITEA_DEV_ADDR}}|${TEST_DEV_ADDR}|g' tests/dev.ini.tmpl > tests/dev.ini

.PHONY: test-dev
test-dev: generate-ini-dev
GITEA_ROOT="$(CURDIR)" $(GO) run -tags 'sqlite sqlite_unlock_notify' contrib/dev/dev.go

.PHONY: test-dev-ci
test-dev-ci: generate-ini-dev
GITEA_ROOT="$(CURDIR)" $(GO) run -tags 'sqlite sqlite_unlock_notify' contrib/dev/dev.go web --ci

.PHONY: test-dev-ci-check
test-dev-ci-check: test-dev-ci test-check

.PHONY: test-sqlite
test-sqlite: integrations.sqlite.test generate-ini-sqlite
GITEA_ROOT="$(CURDIR)" GITEA_CONF=tests/sqlite.ini ./integrations.sqlite.test
Expand Down
Loading