summaryrefslogtreecommitdiffstats
path: root/.forgejo/workflows/e2e.yml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2024-10-18 20:33:49 +0200
committerDaniel Baumann <daniel@debian.org>2024-10-18 20:33:49 +0200
commitdd136858f1ea40ad3c94191d647487fa4f31926c (patch)
tree58fec94a7b2a12510c9664b21793f1ed560c6518 /.forgejo/workflows/e2e.yml
parentInitial commit. (diff)
downloadforgejo-dd136858f1ea40ad3c94191d647487fa4f31926c.tar.xz
forgejo-dd136858f1ea40ad3c94191d647487fa4f31926c.zip
Adding upstream version 9.0.0.HEADupstream/9.0.0upstreamdebian
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to '.forgejo/workflows/e2e.yml')
-rw-r--r--.forgejo/workflows/e2e.yml37
1 files changed, 37 insertions, 0 deletions
diff --git a/.forgejo/workflows/e2e.yml b/.forgejo/workflows/e2e.yml
new file mode 100644
index 0000000..9f2fbb0
--- /dev/null
+++ b/.forgejo/workflows/e2e.yml
@@ -0,0 +1,37 @@
+name: e2e
+
+on:
+ pull_request:
+ paths:
+ - Makefile
+ - playwright.config.js
+ - .forgejo/workflows/e2e.yml
+ - tests/e2e/**
+ - web_src/js/**
+ - web_src/css/form.css
+ - templates/webhook/shared-settings.tmpl
+ - templates/org/team/new.tmpl
+
+jobs:
+ test-e2e:
+ if: ${{ !startsWith(vars.ROLE, 'forgejo-') }}
+ runs-on: docker
+ container:
+ image: 'code.forgejo.org/oci/playwright:latest'
+ steps:
+ - uses: https://code.forgejo.org/actions/checkout@v4
+ - uses: https://code.forgejo.org/actions/setup-go@v4
+ with:
+ go-version-file: "go.mod"
+ - run: |
+ git config --add safe.directory '*'
+ chown -R forgejo:forgejo .
+ - run: |
+ su forgejo -c 'make deps-frontend frontend deps-backend'
+ - run: |
+ su forgejo -c 'make backend'
+ - run: |
+ su forgejo -c 'make generate test-e2e-sqlite'
+ timeout-minutes: 40
+ env:
+ USE_REPO_TEST_DIR: 1