summaryrefslogtreecommitdiffstats
path: root/.forgejo/workflows/e2e.yml
blob: 5e6348f54c161420ef93bd61acb84164f2e64372 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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: vars.ROLE == 'forgejo-coding' || vars.ROLE == 'forgejo-testing'
    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