summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-05-05 00:21:48 +0200
committerGitHub <noreply@github.com>2023-05-04 22:21:48 +0000
commit0ca1958e1ab8198c40ad952dac27ef0b9825385a (patch)
tree29a5bf3a6ef6247bf9ef230795840d8fcab68ea5 /.github
parent747e9f735cfe654a1cb7cd4babf0689f5a978cb7 (diff)
downloadgitea-0ca1958e1ab8198c40ad952dac27ef0b9825385a.tar.gz
gitea-0ca1958e1ab8198c40ad952dac27ef0b9825385a.zip
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>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/pull-compliance.yml8
-rw-r--r--.github/workflows/pull-compliance_docs.yml8
-rw-r--r--.github/workflows/pull-db_test.yml4
-rw-r--r--.github/workflows/pull-docker_dryrun.yml4
-rw-r--r--.github/workflows/pull-e2e.yml6
5 files changed, 25 insertions, 5 deletions
diff --git a/.github/workflows/pull-compliance.yml b/.github/workflows/pull-compliance.yml
index 1239b9caa7..94ca850e80 100644
--- a/.github/workflows/pull-compliance.yml
+++ b/.github/workflows/pull-compliance.yml
@@ -2,6 +2,10 @@ name: "Pull: Compliance Tests"
on: [pull_request]
+concurrency:
+ group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
+ cancel-in-progress: true
+
jobs:
lint_basic:
runs-on: ubuntu-latest
@@ -79,7 +83,7 @@ jobs:
- name: setup node
uses: actions/setup-node@v3
with:
- node-version: 18
+ node-version: 20
- name: deps-frontend
run: make deps-frontend
- name: lint frontend
@@ -100,7 +104,7 @@ jobs:
- name: setup node
uses: actions/setup-node@v3
with:
- node-version: 18
+ node-version: 20
- name: deps-backend
run: make deps-backend deps-tools
- name: deps-frontend
diff --git a/.github/workflows/pull-compliance_docs.yml b/.github/workflows/pull-compliance_docs.yml
index 679e925515..c033b62711 100644
--- a/.github/workflows/pull-compliance_docs.yml
+++ b/.github/workflows/pull-compliance_docs.yml
@@ -6,6 +6,10 @@ on:
- "docs/**"
- "*.md"
+concurrency:
+ group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
+ cancel-in-progress: true
+
jobs:
compliance-docs:
runs-on: ubuntu-latest
@@ -13,9 +17,9 @@ jobs:
- name: checkout
uses: actions/checkout@v3
- name: setup node
- uses: actions/setup-node@v2
+ uses: actions/setup-node@v3
with:
- node-version: 18
+ node-version: 20
- name: install dependencies
run: make deps-frontend
- name: lint markdown
diff --git a/.github/workflows/pull-db_test.yml b/.github/workflows/pull-db_test.yml
index 3cae4df039..ce97bfcb2c 100644
--- a/.github/workflows/pull-db_test.yml
+++ b/.github/workflows/pull-db_test.yml
@@ -2,6 +2,10 @@ name: "Pull: Database Tests"
on: [pull_request]
+concurrency:
+ group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
+ cancel-in-progress: true
+
jobs:
# PostgreSQL Tests
db_pgsql_test:
diff --git a/.github/workflows/pull-docker_dryrun.yml b/.github/workflows/pull-docker_dryrun.yml
index 8e5acb3cee..f17d6014b6 100644
--- a/.github/workflows/pull-docker_dryrun.yml
+++ b/.github/workflows/pull-docker_dryrun.yml
@@ -2,6 +2,10 @@ name: "Pull: Docker Dry Run"
on: [pull_request]
+concurrency:
+ group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
+ cancel-in-progress: true
+
jobs:
docker_dryrun:
runs-on: ubuntu-latest
diff --git a/.github/workflows/pull-e2e.yml b/.github/workflows/pull-e2e.yml
index 2cd6bd0d6a..37fc94fd96 100644
--- a/.github/workflows/pull-e2e.yml
+++ b/.github/workflows/pull-e2e.yml
@@ -2,6 +2,10 @@ name: "Pull: E2E Tests"
on: [pull_request]
+concurrency:
+ group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
+ cancel-in-progress: true
+
jobs:
e2e_tests:
runs-on: ubuntu-latest
@@ -15,7 +19,7 @@ jobs:
- name: setup node
uses: actions/setup-node@v3
with:
- node-version: 18
+ node-version: 20
- name: build
run: make deps-frontend frontend deps-backend
- name: Install playwright browsers