Skip to content

Commit f7f0782

Browse files
Use Actions for DB & E2E tests (#24494)
following #24314 and #24434, this PR moves drone cron pipelines to (GitHub) Actions. As these are mostly compatible with Gitea Actions, when we start to dogfood, these will already be migrated. --------- Co-authored-by: silverwind <[email protected]>
1 parent ad8631c commit f7f0782

9 files changed

+428
-853
lines changed

.drone.yml

Lines changed: 0 additions & 846 deletions
Large diffs are not rendered by default.

.github/workflows/cron-licenses.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
name: "Cron: Update licenses and gitignores"
2+
13
on:
24
schedule:
35
# weekly on Monday at 0:07 UTC
46
- cron: "7 0 * * 1"
57

6-
name: Update licenses and gitignores
7-
88
jobs:
99
cron:
1010
runs-on: ubuntu-latest

.github/workflows/cron-translations.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
name: "Cron: Pull translations from Crowdin"
2+
13
on:
24
schedule:
35
- cron: "7 0 * * *" # every day at 0:07 UTC
46

5-
name: Pull translations from Crowdin
6-
77
jobs:
88
crowdin_pull:
99
runs-on: ubuntu-latest

.github/workflows/pull-compliance.yml

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
name: "Pull: Compliance Tests"
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
lint_basic:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: checkout
10+
uses: actions/checkout@v3
11+
- name: setup go
12+
uses: actions/setup-go@v4
13+
with:
14+
go-version: '>=1.20'
15+
- name: deps-backend
16+
run: make deps-backend deps-tools
17+
- name: lint backend
18+
run: make lint-backend
19+
env:
20+
GOPROXY: https://goproxy.io # proxy.golang.org is blocked in China, this proxy is not
21+
GOSUMDB: sum.golang.org
22+
TAGS: bindata sqlite sqlite_unlock_notify
23+
lint_windows:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: checkout
27+
uses: actions/checkout@v3
28+
- name: setup go
29+
uses: actions/setup-go@v4
30+
with:
31+
go-version: '>=1.20'
32+
- name: deps-backend
33+
run: make deps-backend deps-tools
34+
- name: lint-backend-windows
35+
run: make lint-go-windows lint-go-vet
36+
env:
37+
GOPROXY: https://goproxy.io # proxy.golang.org is blocked in China, this proxy is not
38+
GOSUMDB: sum.golang.org
39+
TAGS: bindata sqlite sqlite_unlock_notify
40+
GOOS: windows
41+
GOARCH: amd64
42+
lint_gogit:
43+
runs-on: ubuntu-latest
44+
steps:
45+
- name: checkout
46+
uses: actions/checkout@v3
47+
- name: setup go
48+
uses: actions/setup-go@v4
49+
with:
50+
go-version: '>=1.20'
51+
- name: deps-backend
52+
run: make deps-backend deps-tools
53+
- name: lint-backend-gogit
54+
run: make lint-backend
55+
env:
56+
GOPROXY: https://goproxy.io # proxy.golang.org is blocked in China, this proxy is not
57+
GOSUMDB: sum.golang.org
58+
TAGS: bindata gogit sqlite sqlite_unlock_notify
59+
- name: checks backend
60+
run: make --always-make checks-backend # ensure the 'go-licenses' make target runs
61+
check_backend:
62+
runs-on: ubuntu-latest
63+
steps:
64+
- name: checkout
65+
uses: actions/checkout@v3
66+
- name: setup go
67+
uses: actions/setup-go@v4
68+
with:
69+
go-version: '>=1.20'
70+
- name: deps-backend
71+
run: make deps-backend deps-tools
72+
- name: checks backend
73+
run: make --always-make checks-backend # ensure the 'go-licenses' make target runs
74+
frontend:
75+
runs-on: ubuntu-latest
76+
steps:
77+
- name: checkout
78+
uses: actions/checkout@v3
79+
- name: setup node
80+
uses: actions/setup-node@v3
81+
with:
82+
node-version: 18
83+
- name: deps-frontend
84+
run: make deps-frontend
85+
- name: lint frontend
86+
run: make lint-frontend
87+
- name: checks frontend
88+
run: make checks-frontend
89+
- name: test frontend
90+
run: make test-frontend
91+
backend:
92+
runs-on: ubuntu-latest
93+
steps:
94+
- name: checkout
95+
uses: actions/checkout@v3
96+
- name: setup go
97+
uses: actions/setup-go@v4
98+
with:
99+
go-version: '>=1.20'
100+
- name: setup node
101+
uses: actions/setup-node@v3
102+
with:
103+
node-version: 18
104+
- name: deps-backend
105+
run: make deps-backend deps-tools
106+
- name: deps-frontend
107+
run: make deps-frontend
108+
- name: build frontend
109+
run: make frontend
110+
- name: build-backend-no-gcc
111+
run: go build -o gitea_no_gcc # test if build succeeds without the sqlite tag
112+
env:
113+
GOPROXY: https://goproxy.io
114+
- name: build-backend-arm64
115+
run: make backend # test cross compile
116+
env:
117+
GOPROXY: https://goproxy.io
118+
GOOS: linux
119+
GOARCH: arm64
120+
TAGS: bindata gogit
121+
- name: build-backend-windows
122+
run: go build -o gitea_windows
123+
env:
124+
GOPROXY: https://goproxy.io
125+
GOOS: windows
126+
GOARCH: amd64
127+
TAGS: bindata gogit
128+
- name: build-backend-386
129+
run: go build -o gitea_linux_386 # test if compatible with 32 bit
130+
env:
131+
GOPROXY: https://goproxy.io
132+
GOOS: linux
133+
GOARCH: 386

.github/workflows/pull-compliance_docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Compliance testing for documentation
1+
name: "Pull: Compliance testing for documentation"
22

33
on:
44
pull_request:

0 commit comments

Comments
 (0)