Skip to content

Commit 78f6904

Browse files
committed
chore(ci): ROLE forgejo-coding & forgejo-testing (part two)
When the CI vars.ROLE is forgejo-coding, it is assumed to be the repository where collaborative coding happens, i.e. https://codeberg.org/forgejo/forgejo When the CI vars.ROLE is forgejo-testing, it is assumed that only codebase testing is to be run and no other tests such as release build integration, label constraints, backporting etc. (cherry picked from commit 068558a) Conflicts: .forgejo/workflows/testing.yml was in .forgejo/workflows/e2e.yml
1 parent 3465f73 commit 78f6904

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.forgejo/workflows/cascade-setup-end-to-end.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
4545
cascade:
4646
if: >
47-
!startsWith(vars.ROLE, 'forgejo-') && (
47+
vars.ROLE == 'forgejo-coding' && (
4848
github.event_name == 'push' ||
4949
(
5050
github.event.action == 'label_updated' && contains(github.event.pull_request.labels.*.name, 'run-end-to-end-tests')

.forgejo/workflows/e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414

1515
jobs:
1616
test-e2e:
17-
if: ${{ !startsWith(vars.ROLE, 'forgejo-') }}
17+
if: vars.ROLE == 'forgejo-coding' || vars.ROLE == 'forgejo-testing'
1818
runs-on: docker
1919
container:
2020
image: 'code.forgejo.org/oci/playwright:latest'

.forgejo/workflows/testing.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
path: '/workspace/forgejo/forgejo/gitea'
3535
key: backend-build-${{ github.sha }}
3636
frontend-checks:
37-
if: ${{ !startsWith(vars.ROLE, 'forgejo-') }}
37+
if: vars.ROLE == 'forgejo-coding' || vars.ROLE == 'forgejo-testing'
3838
runs-on: docker
3939
container:
4040
image: 'code.forgejo.org/oci/node:20-bookworm'
@@ -46,7 +46,7 @@ jobs:
4646
- run: make test-frontend-coverage
4747
- run: make frontend
4848
test-unit:
49-
if: ${{ !startsWith(vars.ROLE, 'forgejo-') }}
49+
if: vars.ROLE == 'forgejo-coding' || vars.ROLE == 'forgejo-testing'
5050
runs-on: docker
5151
needs: [backend-checks, frontend-checks]
5252
container:
@@ -106,7 +106,7 @@ jobs:
106106
TAGS: bindata
107107
TEST_ELASTICSEARCH_URL: http://elasticsearch:9200
108108
test-remote-cacher:
109-
if: ${{ !startsWith(vars.ROLE, 'forgejo-') }}
109+
if: vars.ROLE == 'forgejo-coding' || vars.ROLE == 'forgejo-testing'
110110
runs-on: docker
111111
needs: [backend-checks, frontend-checks]
112112
container:
@@ -167,7 +167,7 @@ jobs:
167167
TAGS: bindata
168168
TEST_REDIS_SERVER: cacher:${{ matrix.cacher.port }}
169169
test-mysql:
170-
if: ${{ !startsWith(vars.ROLE, 'forgejo-') }}
170+
if: vars.ROLE == 'forgejo-coding' || vars.ROLE == 'forgejo-testing'
171171
runs-on: docker
172172
needs: [backend-checks, frontend-checks]
173173
container:
@@ -218,7 +218,7 @@ jobs:
218218
env:
219219
USE_REPO_TEST_DIR: 1
220220
test-pgsql:
221-
if: ${{ !startsWith(vars.ROLE, 'forgejo-') }}
221+
if: vars.ROLE == 'forgejo-coding' || vars.ROLE == 'forgejo-testing'
222222
runs-on: docker
223223
needs: [backend-checks, frontend-checks]
224224
container:
@@ -274,7 +274,7 @@ jobs:
274274
USE_REPO_TEST_DIR: 1
275275
TEST_LDAP: 1
276276
test-sqlite:
277-
if: ${{ !startsWith(vars.ROLE, 'forgejo-') }}
277+
if: vars.ROLE == 'forgejo-coding' || vars.ROLE == 'forgejo-testing'
278278
runs-on: docker
279279
needs: [backend-checks, frontend-checks]
280280
container:
@@ -318,7 +318,7 @@ jobs:
318318
TEST_TAGS: sqlite sqlite_unlock_notify
319319
USE_REPO_TEST_DIR: 1
320320
security-check:
321-
if: ${{ !startsWith(vars.ROLE, 'forgejo-') }}
321+
if: vars.ROLE == 'forgejo-coding' || vars.ROLE == 'forgejo-testing'
322322
runs-on: docker
323323
needs:
324324
- test-sqlite

0 commit comments

Comments
 (0)