mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-25 17:30:36 +00:00
Upgrade to Node 20 on CI, enable actions cancellation (#24524)
- Upgrade node, the
[snap](7abe958f5b/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>
This commit is contained in:
parent
747e9f735c
commit
0ca1958e1a
6 changed files with 29 additions and 9 deletions
|
@ -33,7 +33,7 @@ steps:
|
||||||
- git fetch --tags --force
|
- git fetch --tags --force
|
||||||
|
|
||||||
- name: deps-frontend
|
- name: deps-frontend
|
||||||
image: node:18
|
image: node:20
|
||||||
pull: always
|
pull: always
|
||||||
commands:
|
commands:
|
||||||
- make deps-frontend
|
- make deps-frontend
|
||||||
|
@ -51,7 +51,7 @@ steps:
|
||||||
image: techknowlogick/xgo:go-1.20.x
|
image: techknowlogick/xgo:go-1.20.x
|
||||||
pull: always
|
pull: always
|
||||||
commands:
|
commands:
|
||||||
# Upgrade to node 18 once https://github.com/techknowlogick/xgo/issues/163 is resolved
|
# Upgrade to node 20 once https://github.com/techknowlogick/xgo/issues/163 is resolved
|
||||||
- curl -sL https://deb.nodesource.com/setup_16.x | bash - && apt-get -qqy install nodejs
|
- curl -sL https://deb.nodesource.com/setup_16.x | bash - && apt-get -qqy install nodejs
|
||||||
- export PATH=$PATH:$GOPATH/bin
|
- export PATH=$PATH:$GOPATH/bin
|
||||||
- make release
|
- make release
|
||||||
|
@ -161,7 +161,7 @@ steps:
|
||||||
- git fetch --tags --force
|
- git fetch --tags --force
|
||||||
|
|
||||||
- name: deps-frontend
|
- name: deps-frontend
|
||||||
image: node:18
|
image: node:20
|
||||||
pull: always
|
pull: always
|
||||||
commands:
|
commands:
|
||||||
- make deps-frontend
|
- make deps-frontend
|
||||||
|
@ -179,7 +179,7 @@ steps:
|
||||||
image: techknowlogick/xgo:go-1.20.x
|
image: techknowlogick/xgo:go-1.20.x
|
||||||
pull: always
|
pull: always
|
||||||
commands:
|
commands:
|
||||||
# Upgrade to node 18 once https://github.com/techknowlogick/xgo/issues/163 is resolved
|
# Upgrade to node 20 once https://github.com/techknowlogick/xgo/issues/163 is resolved
|
||||||
- curl -sL https://deb.nodesource.com/setup_16.x | bash - && apt-get -qqy install nodejs
|
- curl -sL https://deb.nodesource.com/setup_16.x | bash - && apt-get -qqy install nodejs
|
||||||
- export PATH=$PATH:$GOPATH/bin
|
- export PATH=$PATH:$GOPATH/bin
|
||||||
- make release
|
- make release
|
||||||
|
|
8
.github/workflows/pull-compliance.yml
vendored
8
.github/workflows/pull-compliance.yml
vendored
|
@ -2,6 +2,10 @@ name: "Pull: Compliance Tests"
|
||||||
|
|
||||||
on: [pull_request]
|
on: [pull_request]
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint_basic:
|
lint_basic:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -79,7 +83,7 @@ jobs:
|
||||||
- name: setup node
|
- name: setup node
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 20
|
||||||
- name: deps-frontend
|
- name: deps-frontend
|
||||||
run: make deps-frontend
|
run: make deps-frontend
|
||||||
- name: lint frontend
|
- name: lint frontend
|
||||||
|
@ -100,7 +104,7 @@ jobs:
|
||||||
- name: setup node
|
- name: setup node
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 20
|
||||||
- name: deps-backend
|
- name: deps-backend
|
||||||
run: make deps-backend deps-tools
|
run: make deps-backend deps-tools
|
||||||
- name: deps-frontend
|
- name: deps-frontend
|
||||||
|
|
8
.github/workflows/pull-compliance_docs.yml
vendored
8
.github/workflows/pull-compliance_docs.yml
vendored
|
@ -6,6 +6,10 @@ on:
|
||||||
- "docs/**"
|
- "docs/**"
|
||||||
- "*.md"
|
- "*.md"
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
compliance-docs:
|
compliance-docs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -13,9 +17,9 @@ jobs:
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: setup node
|
- name: setup node
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 20
|
||||||
- name: install dependencies
|
- name: install dependencies
|
||||||
run: make deps-frontend
|
run: make deps-frontend
|
||||||
- name: lint markdown
|
- name: lint markdown
|
||||||
|
|
4
.github/workflows/pull-db_test.yml
vendored
4
.github/workflows/pull-db_test.yml
vendored
|
@ -2,6 +2,10 @@ name: "Pull: Database Tests"
|
||||||
|
|
||||||
on: [pull_request]
|
on: [pull_request]
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# PostgreSQL Tests
|
# PostgreSQL Tests
|
||||||
db_pgsql_test:
|
db_pgsql_test:
|
||||||
|
|
4
.github/workflows/pull-docker_dryrun.yml
vendored
4
.github/workflows/pull-docker_dryrun.yml
vendored
|
@ -2,6 +2,10 @@ name: "Pull: Docker Dry Run"
|
||||||
|
|
||||||
on: [pull_request]
|
on: [pull_request]
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docker_dryrun:
|
docker_dryrun:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
6
.github/workflows/pull-e2e.yml
vendored
6
.github/workflows/pull-e2e.yml
vendored
|
@ -2,6 +2,10 @@ name: "Pull: E2E Tests"
|
||||||
|
|
||||||
on: [pull_request]
|
on: [pull_request]
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
e2e_tests:
|
e2e_tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -15,7 +19,7 @@ jobs:
|
||||||
- name: setup node
|
- name: setup node
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 20
|
||||||
- name: build
|
- name: build
|
||||||
run: make deps-frontend frontend deps-backend
|
run: make deps-frontend frontend deps-backend
|
||||||
- name: Install playwright browsers
|
- name: Install playwright browsers
|
||||||
|
|
Loading…
Reference in a new issue