1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

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

View File

@@ -0,0 +1 @@
ref: refs/heads/master

View File

@@ -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

View File

@@ -0,0 +1 @@
Unnamed repository; edit this file 'description' to name the repository.

View File

@@ -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]
# *~

View File

@@ -0,0 +1,2 @@
x<01><><EFBFBD>
<EFBFBD>0<10>=<3D>)<29>.<2E>&<26><>-<2D><>;<3B>q<><71>BcK<63><4B><EFBFBD>Ļ<><C4BB>a<EFBFBD>F<>Z<EFBFBD>i<>6U<36>!)<29><>d<EFBFBD><14><>=$<24><>'<27><>cr<63><72><EFBFBD>(4<>i<EFBFBD>g<03>(<28>D<EFBFBD><44>2<EFBFBD>l3f<33><66>1<EFBFBD><31><EFBFBD><1A>C%ҫ=<3D>

View File

@@ -0,0 +1,2 @@
x<01><>[
1 E<><45>*<2A>/J2<4A>+ <20>K<EFBFBD>dL<> \<5C>E܀_.<2E>{<7B>պv<D5BA> <20><><EFBFBD>[!<21>J<EFBFBD>1&<26><><EFBFBD>I<EFBFBD>=e$-<2D>q6eI<65><49><EFBFBD><EFBFBD><EFBFBD><EFBFBD>p<EFBFBD>V5<56>|q<>w<EFBFBD><77><EFBFBD><EFBFBD><EFBFBD><EFBFBD>u\<06>ā'8bFtc<1D>nI?<3F>D<EFBFBD><03><>1<EFBFBD>

View File

@@ -0,0 +1,2 @@
x<01><>K
1]<5D>ً<><D98B>o<EFBFBD>0<EFBFBD>x<EFBFBD><4E>1<EFBFBD><10>p<>E<15><>[{

View File

@@ -0,0 +1,2 @@
# pack-refs with: peeled fully-peeled
9800fe78cabf4fe774fcf376f97fa2a0ed06987b refs/heads/master

View File

@@ -0,0 +1 @@
9800fe78cabf4fe774fcf376f97fa2a0ed06987b

View File

@@ -0,0 +1 @@
ref: refs/heads/master

View File

@@ -0,0 +1,4 @@
[core]
repositoryformatversion = 0
filemode = true
bare = true

View File

@@ -0,0 +1 @@
Unnamed repository; edit this file 'description' to name the repository.

View File

@@ -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

View File

@@ -0,0 +1,2 @@
#!/usr/bin/env bash
"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive

View File

@@ -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

View File

@@ -0,0 +1,2 @@
#!/usr/bin/env bash
"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive

View File

@@ -0,0 +1,3 @@
#!/bin/bash
echo Hello, World!

View File

@@ -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

View File

@@ -0,0 +1,2 @@
#!/usr/bin/env bash
"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3

View File

@@ -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]
# *~

View File

@@ -0,0 +1 @@
65f1bf27bc3bf70f64657658635e66094edbcb4d refs/heads/master

View File

@@ -0,0 +1 @@
65f1bf27bc3bf70f64657658635e66094edbcb4d

View File

@@ -0,0 +1 @@
65f1bf27bc3bf70f64657658635e66094edbcb4d

View File

@@ -0,0 +1 @@
65f1bf27bc3bf70f64657658635e66094edbcb4d

View File

@@ -0,0 +1 @@
65f1bf27bc3bf70f64657658635e66094edbcb4d

View File

@@ -0,0 +1 @@
65f1bf27bc3bf70f64657658635e66094edbcb4d

View File

@@ -0,0 +1 @@
ref: refs/heads/master

View File

@@ -0,0 +1,4 @@
[core]
repositoryformatversion = 0
filemode = true
bare = true

View File

@@ -0,0 +1 @@
Unnamed repository; edit this file 'description' to name the repository.

View File

@@ -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]
# *~

View File

@@ -0,0 +1 @@
x+)JMU03d040031QH<51>+<2B>(a<><61>:<3A><EFBFBD><E38696>o<EFBFBD><6F><K<><4B>Q@<40><><EFBFBD> P<>d<EFBFBD><64><EFBFBD>K<EFBFBD>U_#<23>?<3F><><EFBFBD><1E>d<EFBFBD><64><EFBFBD>"}<01><>

View File

@@ -0,0 +1,2 @@
x<01><>9<0E>0@Qj<51>b.@<40>8<EFBFBD>MB*Z<><5A>x<EFBFBD><78>Ž#/<05>'<27> <0C><><EFBFBD><EFBFBD>&<26><>
(՞Jb<06><>ZˤИ<CBA4><D098>y<EFBFBD>$<24>r<EFBFBD>{<7B><><EFBFBD><68><C685> <09><><EFBFBD><<3C><><EFBFBD>S<EFBFBD><53>Lz#<07><>'<27>z<EFBFBD>j攛-&<26><><EFBFBD>Y]yե11\<5C><><EFBFBD>q@D<>p<EFBFBD><70><EFBFBD><EFBFBD><EFBFBD>c<EFBFBD><63>߂<EFBFBD>N<04>s<01><g<><05><>K<EFBFBD>

View File

@@ -0,0 +1 @@
ef6b814b610d8e7717aa0f71fbe5842bcf814697

View File

@@ -0,0 +1 @@
ref: refs/heads/master

View File

@@ -0,0 +1,4 @@
[core]
repositoryformatversion = 0
filemode = true
bare = true

View File

@@ -0,0 +1 @@
Unnamed repository; edit this file 'description' to name the repository.

View File

@@ -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

View File

@@ -0,0 +1,2 @@
#!/usr/bin/env bash
"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" post-receive

View File

@@ -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

View File

@@ -0,0 +1,2 @@
#!/usr/bin/env bash
"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" pre-receive

View File

@@ -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

View File

@@ -0,0 +1,2 @@
#!/usr/bin/env bash
"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" update $1 $2 $3

View File

@@ -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]
# *~

View File

@@ -0,0 +1,3 @@
65f1bf27bc3bf70f64657658635e66094edbcb4d refs/heads/master
985f0301dba5e7b34be866819cd15ad3d8f508ee refs/heads/branch2
62fb502a7172d4453f0322a2cc85bddffa57f07a refs/heads/pr-to-update

View File

@@ -0,0 +1,2 @@
xe<><65>N<EFBFBD>0D<>#<23><1F><03>4
J<EFBFBD>A<05>5<EFBFBD><35><EFBFBD><EFBFBD>,<2C>x<EFBFBD>zsV<73><56><EFBFBD>5<08>D<EFBFBD><44>ػ<EFBFBD>7<EFBFBD>,=<3D><>o.<13>E卢<45>q5J=<3D><><EFBFBD><EFBFBD><EFBFBD> r<>=>4<1B><1D>

View File

@@ -0,0 +1 @@
65f1bf27bc3bf70f64657658635e66094edbcb4d

View File

@@ -0,0 +1 @@
985f0301dba5e7b34be866819cd15ad3d8f508ee

View File

@@ -0,0 +1 @@
65f1bf27bc3bf70f64657658635e66094edbcb4d

View File

@@ -0,0 +1 @@
65f1bf27bc3bf70f64657658635e66094edbcb4d

View File

@@ -0,0 +1 @@
65f1bf27bc3bf70f64657658635e66094edbcb4d

View File

@@ -0,0 +1 @@
62fb502a7172d4453f0322a2cc85bddffa57f07a

View File

@@ -0,0 +1 @@
3fa2f829675543ecfc16b2891aebe8bf0608a8f4

View File

@@ -0,0 +1 @@
4a357436d925b5c974181ff12a994538ddc5a269

View File

@@ -0,0 +1 @@
5f22f7d0d95d614d25a5b68592adb345a4b5c7fd

View File

@@ -0,0 +1 @@
62fb502a7172d4453f0322a2cc85bddffa57f07a

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