File tree 1 file changed +23
-4
lines changed 1 file changed +23
-4
lines changed Original file line number Diff line number Diff line change @@ -515,6 +515,10 @@ trigger:
515
515
event :
516
516
- pull_request
517
517
518
+ volumes :
519
+ - name : deps
520
+ temp : {}
521
+
518
522
services :
519
523
- name : pgsql
520
524
pull : default
@@ -525,22 +529,33 @@ services:
525
529
POSTGRES_INITDB_ARGS : --encoding=UTF8 --lc-collate='en_US.UTF-8' --lc-ctype='en_US.UTF-8'
526
530
527
531
steps :
528
- - name : tag-pre-condition
532
+ - name : deps-frontend
533
+ image : node:16
529
534
pull : always
530
- image : drone/git
531
535
commands :
532
- - git update-ref refs/heads/tag_test ${DRONE_COMMIT_SHA}
536
+ - make deps-frontend
537
+
538
+ - name : deps-backend
539
+ image : golang:1.18
540
+ pull : always
541
+ commands :
542
+ - make deps-backend
543
+ volumes :
544
+ - name : deps
545
+ path : /go
533
546
534
547
# TODO: We should probably build all dependencies into a test image
535
548
- name : test-e2e
536
549
image : mcr.microsoft.com/playwright:v1.22.2-focal
537
550
commands :
538
551
- 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
539
552
- groupadd --gid 1001 gitea && useradd -m --gid 1001 --uid 1001 gitea
553
+ - apt-get update
554
+ - apt-get install build-essential --yes
540
555
- ./build/test-env-prepare.sh
541
556
- su gitea bash -c "export PATH=$PATH:/usr/local/go/bin && timeout -s ABRT 40m make test-e2e-pgsql"
542
557
environment :
543
- GOPROXY : https://goproxy.cn
558
+ GOPROXY : https://goproxy.io
544
559
GOSUMDB : sum.golang.org
545
560
TAGS : bindata
546
561
USE_REPO_TEST_DIR : 1
@@ -549,6 +564,10 @@ steps:
549
564
TEST_PGSQL_SCHEMA : ' '
550
565
TEST_PGSQL_DBNAME : ' testgitea-e2e'
551
566
NPX_FLAGS : ' --yes'
567
+ depends_on : [deps-backend, deps-frontend]
568
+ volumes :
569
+ - name : deps
570
+ path : /go
552
571
553
572
---
554
573
kind : pipeline
You can’t perform that action at this time.
0 commit comments