Skip to content

Commit 22aa0ed

Browse files
committed
Update playwright
1 parent dda3d89 commit 22aa0ed

File tree

5 files changed

+67
-1774
lines changed

5 files changed

+67
-1774
lines changed

.drone.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ services:
520520
pull: default
521521
image: postgres:10
522522
environment:
523-
POSTGRES_DB: testgitea
523+
POSTGRES_DB: testgitea-e2e
524524
POSTGRES_PASSWORD: postgres
525525
POSTGRES_INITDB_ARGS: --encoding=UTF8 --lc-collate='en_US.UTF-8' --lc-ctype='en_US.UTF-8'
526526

@@ -533,9 +533,9 @@ steps:
533533

534534
# TODO: We should probably build all dependencies into a test image
535535
- name: test-e2e
536-
image: mcr.microsoft.com/playwright:v1.19.1-focal
536+
image: mcr.microsoft.com/playwright:v1.22.2-focal
537537
commands:
538-
- curl -sL https://go.dev/dl/go1.17.6.linux-amd64.tar.gz -o go1.17.6.linux-amd64.tar.gz && tar -C /usr/local -xzf go1.17.6.linux-amd64.tar.gz
538+
- curl -sL https://go.dev/dl/go1.18.3.linux-amd64.tar.gz -o go1.18.3.linux-amd64.tar.gz && tar -C /usr/local -xzf go1.18.3.linux-amd64.tar.gz
539539
- groupadd --gid 1001 gitea && useradd -m --gid 1001 --uid 1001 gitea
540540
- ./build/test-env-prepare.sh
541541
- su gitea bash -c "export PATH=$PATH:/usr/local/go/bin && timeout -s ABRT 40m make test-e2e-pgsql"
@@ -547,6 +547,7 @@ steps:
547547
NO_DEPS_PLAYWRIGHT: 1
548548
TEST_LOGGER: console,file # Debug
549549
TEST_PGSQL_SCHEMA: ''
550+
TEST_PGSQL_DBNAME: 'testgitea-e2e'
550551
NPX_FLAGS: '--yes'
551552

552553
---

Makefile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,15 +132,10 @@ ifeq ($(filter $(TAGS_SPLIT),bindata),bindata)
132132
GO_SOURCES += $(BINDATA_DEST)
133133
endif
134134

135-
<<<<<<< HEAD
136-
=======
137135
ifneq ($(NO_DEPS_PLAYWRIGHT),1)
138136
PLAYWRIGHT_FLAGS += --with-deps
139137
endif
140138

141-
#To update swagger use: GO111MODULE=on go get -u github.com/go-swagger/go-swagger/cmd/swagger
142-
SWAGGER := $(GO) run github.com/go-swagger/go-swagger/cmd/swagger
143-
>>>>>>> d2c9f5bba (Simplify Makefile)
144139
SWAGGER_SPEC := templates/swagger/v1_json.tmpl
145140
SWAGGER_SPEC_S_TMPL := s|"basePath": *"/api/v1"|"basePath": "{{AppSubUrl \| JSEscape \| Safe}}/api/v1"|g
146141
SWAGGER_SPEC_S_JSON := s|"basePath": *"{{AppSubUrl \| JSEscape \| Safe}}/api/v1"|"basePath": "/api/v1"|g

0 commit comments

Comments
 (0)