Skip to content

Commit 12e289f

Browse files
author
Earl Warren
committed
Merge pull request 'CI: merge checks-backend and lint-backend' (go-gitea#2315) from oliverpool/forgejo:ci_merge_steps into forgejo-dependency
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/2315 Reviewed-by: Earl Warren <[email protected]>
2 parents f7ca64d + ffc94d9 commit 12e289f

File tree

1 file changed

+6
-19
lines changed

1 file changed

+6
-19
lines changed

.forgejo/workflows/testing.yml

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- 'v*/forgejo*'
99

1010
jobs:
11-
lint-backend:
11+
backend-checks:
1212
if: ${{ !startsWith(vars.ROLE, 'forgejo-') }}
1313
runs-on: docker
1414
container:
@@ -20,26 +20,13 @@ jobs:
2020
go-version: "1.21"
2121
check-latest: true
2222
- run: make deps-backend deps-tools
23-
- run: make lint-backend
23+
- run: make --always-make -j$(nproc) lint-backend checks-backend # ensure the "go-licenses" make target runs
2424
env:
2525
TAGS: bindata sqlite sqlite_unlock_notify
26-
checks-backend:
27-
if: ${{ !startsWith(vars.ROLE, 'forgejo-') }}
28-
runs-on: docker
29-
container:
30-
image: 'docker.io/node:20-bookworm'
31-
steps:
32-
- uses: https://code.forgejo.org/actions/checkout@v3
33-
- uses: https://code.forgejo.org/actions/setup-go@v4
34-
with:
35-
go-version: "1.21"
36-
check-latest: true
37-
- run: make deps-backend deps-tools
38-
- run: make --always-make checks-backend # ensure the "go-licenses" make target runs
3926
test-unit:
4027
if: ${{ !startsWith(vars.ROLE, 'forgejo-') }}
4128
runs-on: docker
42-
needs: [lint-backend, checks-backend]
29+
needs: [backend-checks]
4330
container:
4431
image: 'docker.io/node:20-bookworm'
4532
services:
@@ -80,7 +67,7 @@ jobs:
8067
test-mysql:
8168
if: ${{ !startsWith(vars.ROLE, 'forgejo-') }}
8269
runs-on: docker
83-
needs: [lint-backend, checks-backend]
70+
needs: [backend-checks]
8471
container:
8572
image: 'docker.io/node:20-bookworm'
8673
services:
@@ -126,7 +113,7 @@ jobs:
126113
test-pgsql:
127114
if: ${{ !startsWith(vars.ROLE, 'forgejo-') }}
128115
runs-on: docker
129-
needs: [lint-backend, checks-backend]
116+
needs: [backend-checks]
130117
container:
131118
image: 'docker.io/node:20-bookworm'
132119
services:
@@ -174,7 +161,7 @@ jobs:
174161
test-sqlite:
175162
if: ${{ !startsWith(vars.ROLE, 'forgejo-') }}
176163
runs-on: docker
177-
needs: [lint-backend, checks-backend]
164+
needs: [backend-checks]
178165
container:
179166
image: 'docker.io/node:20-bookworm'
180167
steps:

0 commit comments

Comments
 (0)