Kd/ci playwright go test (#20123)

* Add initial playwright config

* Simplify Makefile

* Simplify Makefile

* Use correct config files

* Update playwright settings

* Fix package-lock file

* Don't use test logger for e2e tests

* fix frontend lint

* Allow passing TEST_LOGGER variable

* Init postgres database

* use standard gitea env variables

* Update playwright

* update drone

* Move empty env var to commands

* Cleanup

* Move integrations to subfolder

* tests integrations to tests integraton

* Run e2e tests with go test

* Fix linting

* install CI deps

* Add files to ESlint

* Fix drone typo

* Don't log to console in CI

* Use go test http server

* Add build step before tests

* Move shared init function to common package

* fix drone

* Clean up tests

* Fix linting

* Better mocking for page + version string

* Cleanup test generation

* Remove dependency on gitea binary

* Fix linting

* add initial support for running specific tests

* Add ACCEPT_VISUAL variable

* don't require git-lfs

* Add initial documentation

* Review feedback

* Add logged in session test

* Attempt fixing drone race

* Cleanup and bump version

* Bump deps

* Review feedback

* simplify installation

* Fix ci

* Update install docs
This commit is contained in:
Kyle D
2022-09-02 15:18:23 -04:00
committed by GitHub
parent 5710ff343c
commit c8ded77680
644 changed files with 1857 additions and 1027 deletions
@@ -0,0 +1 @@
ref: refs/heads/master
@@ -0,0 +1,8 @@
[core]
repositoryformatversion = 0
filemode = true
bare = true
[remote "origin"]
url = /home/mura/go/src/code.gitea.io/gitea/tests/gitea-repositories-meta/user2/commits_search_test/
fetch = +refs/*:refs/*
mirror = true
@@ -0,0 +1 @@
Unnamed repository; edit this file 'description' to name the repository.
@@ -0,0 +1,6 @@
# git ls-files --others --exclude-from=.git/info/exclude
# Lines that start with '#' are comments.
# For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
# *~
@@ -0,0 +1,2 @@
x…ŽÍ
Â0„=÷)ö.Ê&›Ÿ-ˆè;øq³ÁBcK‰àãÄ»—™aàFi×6UÈ!)£¥d°çÂ=$§±'ã½crˆ¬ã(4¬iÓg±(©D¾û2æl3fÃÄ1ˆ—ŒƒC%Ò«=
@@ -0,0 +1,2 @@
x<>[
1 Eýî*ò/J2é+ ¢Kéd \¾EÜ€_.œ{´Õºv  ‡¾›[!™Jô1&áÅÏI—=e$-¨q6eI¢®¼ú£ípßV5¸|q³w©ÏÍÎÚêu\òÄ<C3B2>'8bFtc©nI?ëDîêç1â
@@ -0,0 +1,2 @@
x<01>ŽK
1ÙÎoÒ0ˆx“NÒ<4E>Áã›…E¼Ò[{
@@ -0,0 +1,2 @@
# pack-refs with: peeled fully-peeled
9800fe78cabf4fe774fcf376f97fa2a0ed06987b refs/heads/master
@@ -0,0 +1 @@
9800fe78cabf4fe774fcf376f97fa2a0ed06987b
@@ -0,0 +1 @@
ref: refs/heads/master
@@ -0,0 +1,4 @@
[core]
repositoryformatversion = 0
filemode = true
bare = true
@@ -0,0 +1 @@
Unnamed repository; edit this file 'description' to name the repository.
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
ORI_DIR=`pwd`
SHELL_FOLDER=$(cd "$(dirname "$0")";pwd)
cd "$ORI_DIR"
for i in `ls "$SHELL_FOLDER/post-receive.d"`; do
sh "$SHELL_FOLDER/post-receive.d/$i"
done
@@ -0,0 +1,2 @@
#!/usr/bin/env bash
"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
ORI_DIR=`pwd`
SHELL_FOLDER=$(cd "$(dirname "$0")";pwd)
cd "$ORI_DIR"
for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do
sh "$SHELL_FOLDER/pre-receive.d/$i"
done
@@ -0,0 +1,2 @@
#!/usr/bin/env bash
"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive
@@ -0,0 +1,3 @@
#!/bin/bash
echo Hello, World!
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
ORI_DIR=`pwd`
SHELL_FOLDER=$(cd "$(dirname "$0")";pwd)
cd "$ORI_DIR"
for i in `ls "$SHELL_FOLDER/update.d"`; do
sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3
done
@@ -0,0 +1,2 @@
#!/usr/bin/env bash
"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3
@@ -0,0 +1,6 @@
# git ls-files --others --exclude-from=.git/info/exclude
# Lines that start with '#' are comments.
# For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
# *~
@@ -0,0 +1 @@
65f1bf27bc3bf70f64657658635e66094edbcb4d refs/heads/master
@@ -0,0 +1 @@
65f1bf27bc3bf70f64657658635e66094edbcb4d
@@ -0,0 +1 @@
65f1bf27bc3bf70f64657658635e66094edbcb4d
@@ -0,0 +1 @@
65f1bf27bc3bf70f64657658635e66094edbcb4d
@@ -0,0 +1 @@
65f1bf27bc3bf70f64657658635e66094edbcb4d
@@ -0,0 +1 @@
65f1bf27bc3bf70f64657658635e66094edbcb4d
@@ -0,0 +1 @@
ref: refs/heads/master
@@ -0,0 +1,4 @@
[core]
repositoryformatversion = 0
filemode = true
bare = true
@@ -0,0 +1 @@
Unnamed repository; edit this file 'description' to name the repository.
@@ -0,0 +1,6 @@
# git ls-files --others --exclude-from=.git/info/exclude
# Lines that start with '#' are comments.
# For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
# *~
@@ -0,0 +1 @@
x+)JMU03d040031QHÒ+©(a¨é:ôã†ÜÖo«Þ<KšÿQ@ô§Ü P¨dèÔKÎU_#â?éû¿ãd™½¯"}•‡
@@ -0,0 +1,2 @@
x­О9В0@Qjџb.@д8“MB*Z®аxЖБВЋ#/·'в ґЇшъ&†а
(ХћJbНФZЛ¤Р<C2A4>ОШy™$Оrњ{ћжОhЖ…€† …®еућS€рLz#—х'»zЯjж”-&Юэ§Y]yХҐ11\Ўн‡q@D…pќ”вРcЈрЯвN…sл<gсїЋK©
@@ -0,0 +1 @@
ef6b814b610d8e7717aa0f71fbe5842bcf814697
@@ -0,0 +1 @@
ref: refs/heads/master
@@ -0,0 +1,4 @@
[core]
repositoryformatversion = 0
filemode = true
bare = true
@@ -0,0 +1 @@
Unnamed repository; edit this file 'description' to name the repository.
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
ORI_DIR=`pwd`
SHELL_FOLDER=$(cd "$(dirname "$0")";pwd)
cd "$ORI_DIR"
for i in `ls "$SHELL_FOLDER/post-receive.d"`; do
sh "$SHELL_FOLDER/post-receive.d/$i"
done
@@ -0,0 +1,2 @@
#!/usr/bin/env bash
"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
ORI_DIR=`pwd`
SHELL_FOLDER=$(cd "$(dirname "$0")";pwd)
cd "$ORI_DIR"
for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do
sh "$SHELL_FOLDER/pre-receive.d/$i"
done
@@ -0,0 +1,2 @@
#!/usr/bin/env bash
"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
ORI_DIR=`pwd`
SHELL_FOLDER=$(cd "$(dirname "$0")";pwd)
cd "$ORI_DIR"
for i in `ls "$SHELL_FOLDER/update.d"`; do
sh "$SHELL_FOLDER/update.d/$i" $1 $2 $3
done
@@ -0,0 +1,2 @@
#!/usr/bin/env bash
"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3
@@ -0,0 +1,6 @@
# git ls-files --others --exclude-from=.git/info/exclude
# Lines that start with '#' are comments.
# For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
# *~
@@ -0,0 +1,3 @@
65f1bf27bc3bf70f64657658635e66094edbcb4d refs/heads/master
985f0301dba5e7b34be866819cd15ad3d8f508ee refs/heads/branch2
62fb502a7172d4453f0322a2cc85bddffa57f07a refs/heads/pr-to-update
@@ -0,0 +1,2 @@
xe<>±NÄ0D©#åæŽ4
JÄAÅ5”޳—,—xÑzsVþ<56>5„DåÑØ»ž7ý,=®®o.áEå<45>¢áq5J=éˆý<CB86>È rÄ=>4§ú
@@ -0,0 +1 @@
65f1bf27bc3bf70f64657658635e66094edbcb4d
@@ -0,0 +1 @@
985f0301dba5e7b34be866819cd15ad3d8f508ee
@@ -0,0 +1 @@
65f1bf27bc3bf70f64657658635e66094edbcb4d
@@ -0,0 +1 @@
65f1bf27bc3bf70f64657658635e66094edbcb4d
@@ -0,0 +1 @@
65f1bf27bc3bf70f64657658635e66094edbcb4d
@@ -0,0 +1 @@
62fb502a7172d4453f0322a2cc85bddffa57f07a
@@ -0,0 +1 @@
3fa2f829675543ecfc16b2891aebe8bf0608a8f4
@@ -0,0 +1 @@
4a357436d925b5c974181ff12a994538ddc5a269
@@ -0,0 +1 @@
5f22f7d0d95d614d25a5b68592adb345a4b5c7fd
@@ -0,0 +1 @@
62fb502a7172d4453f0322a2cc85bddffa57f07a

Some files were not shown because too many files have changed in this diff Show More