Skip to content

Commit 0ca1958

Browse files
Upgrade to Node 20 on CI, enable actions cancellation (#24524)
- Upgrade node, the [snap](https://github.com/go-gitea/gitea/blob/7abe958f5b507efa676fb3b2e27d30517f6d1908/snap/snapcraft.yaml#L47) is excluded from this because [there is no Node 20 snap yet](https://snapcraft.io/node). - Add actions build cancellation based on [this](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-a-fallback-value). --------- Co-authored-by: techknowlogick <techknowlogick@gitea.io>
1 parent 747e9f7 commit 0ca1958

6 files changed

+29
-9
lines changed

.drone.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ steps:
3333
- git fetch --tags --force
3434

3535
- name: deps-frontend
36-
image: node:18
36+
image: node:20
3737
pull: always
3838
commands:
3939
- make deps-frontend
@@ -51,7 +51,7 @@ steps:
5151
image: techknowlogick/xgo:go-1.20.x
5252
pull: always
5353
commands:
54-
# Upgrade to node 18 once https://github.com/techknowlogick/xgo/issues/163 is resolved
54+
# Upgrade to node 20 once https://github.com/techknowlogick/xgo/issues/163 is resolved
5555
- curl -sL https://deb.nodesource.com/setup_16.x | bash - && apt-get -qqy install nodejs
5656
- export PATH=$PATH:$GOPATH/bin
5757
- make release
@@ -161,7 +161,7 @@ steps:
161161
- git fetch --tags --force
162162

163163
- name: deps-frontend
164-
image: node:18
164+
image: node:20
165165
pull: always
166166
commands:
167167
- make deps-frontend
@@ -179,7 +179,7 @@ steps:
179179
image: techknowlogick/xgo:go-1.20.x
180180
pull: always
181181
commands:
182-
# Upgrade to node 18 once https://github.com/techknowlogick/xgo/issues/163 is resolved
182+
# Upgrade to node 20 once https://github.com/techknowlogick/xgo/issues/163 is resolved
183183
- curl -sL https://deb.nodesource.com/setup_16.x | bash - && apt-get -qqy install nodejs
184184
- export PATH=$PATH:$GOPATH/bin
185185
- make release

.github/workflows/pull-compliance.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: "Pull: Compliance Tests"
22

33
on: [pull_request]
44

5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
7+
cancel-in-progress: true
8+
59
jobs:
610
lint_basic:
711
runs-on: ubuntu-latest
@@ -79,7 +83,7 @@ jobs:
7983
- name: setup node
8084
uses: actions/setup-node@v3
8185
with:
82-
node-version: 18
86+
node-version: 20
8387
- name: deps-frontend
8488
run: make deps-frontend
8589
- name: lint frontend
@@ -100,7 +104,7 @@ jobs:
100104
- name: setup node
101105
uses: actions/setup-node@v3
102106
with:
103-
node-version: 18
107+
node-version: 20
104108
- name: deps-backend
105109
run: make deps-backend deps-tools
106110
- name: deps-frontend

.github/workflows/pull-compliance_docs.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,20 @@ on:
66
- "docs/**"
77
- "*.md"
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
11+
cancel-in-progress: true
12+
913
jobs:
1014
compliance-docs:
1115
runs-on: ubuntu-latest
1216
steps:
1317
- name: checkout
1418
uses: actions/checkout@v3
1519
- name: setup node
16-
uses: actions/setup-node@v2
20+
uses: actions/setup-node@v3
1721
with:
18-
node-version: 18
22+
node-version: 20
1923
- name: install dependencies
2024
run: make deps-frontend
2125
- name: lint markdown

.github/workflows/pull-db_test.yml

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: "Pull: Database Tests"
22

33
on: [pull_request]
44

5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
7+
cancel-in-progress: true
8+
59
jobs:
610
# PostgreSQL Tests
711
db_pgsql_test:

.github/workflows/pull-docker_dryrun.yml

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: "Pull: Docker Dry Run"
22

33
on: [pull_request]
44

5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
7+
cancel-in-progress: true
8+
59
jobs:
610
docker_dryrun:
711
runs-on: ubuntu-latest

.github/workflows/pull-e2e.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: "Pull: E2E Tests"
22

33
on: [pull_request]
44

5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
7+
cancel-in-progress: true
8+
59
jobs:
610
e2e_tests:
711
runs-on: ubuntu-latest
@@ -15,7 +19,7 @@ jobs:
1519
- name: setup node
1620
uses: actions/setup-node@v3
1721
with:
18-
node-version: 18
22+
node-version: 20
1923
- name: build
2024
run: make deps-frontend frontend deps-backend
2125
- name: Install playwright browsers

0 commit comments

Comments
 (0)