Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/deploy-main-branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false

env:
NODE_VERSION: 24

jobs:
detect-repo-owner:
name: Detect branch and appropriate server
Expand Down Expand Up @@ -47,7 +50,14 @@ jobs:
- name: Get Node.js
uses: actions/setup-node@v6
with:
node-version: 20
node-version: ${{ env.NODE_VERSION }}

- name: Ensure our node version matches the main repo's version
run: |
[[ "$(curl -s https://raw.githubusercontent.com/opencast/opencast/refs/heads/${{ github.ref_name }}/pom.xml | \
grep node.version | grep -Eo 'v[0-9.]+' | cut -f 1 -d '.' | cut -c 2-)" == "$NODE_VERSION" ]] \
&& exit 0 \
|| (echo "Node version does not match"; exit 1)

- name: Run npm ci
run: npm ci
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/pr-deploy-test-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ concurrency:
group: pull-request-page
cancel-in-progress: false

env:
NODE_VERSION: 24

jobs:
detect-repo-owner:
if: github.repository_owner == 'opencast'
Expand Down Expand Up @@ -53,7 +56,14 @@ jobs:
- name: Get Node.js
uses: actions/setup-node@v6
with:
node-version: 20
node-version: ${{ env.NODE_VERSION }}

- name: Ensure our node version matches the main repo's version
run: |
[[ "$(curl -s https://raw.githubusercontent.com/opencast/opencast/refs/heads/${{ github.base_ref }}/pom.xml | \
grep node.version | grep -Eo 'v[0-9.]+' | cut -f 1 -d '.' | cut -c 2-)" == "$NODE_VERSION" ]] \
&& exit 0 \
|| (echo "Node version does not match"; exit 1)

- name: Run npm ci
run: npm ci
Expand Down
20 changes: 19 additions & 1 deletion .github/workflows/pr-test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
- develop
- r/*

env:
NODE_VERSION: 24

jobs:
check-npm-test:
runs-on: ubuntu-latest
Expand All @@ -20,7 +23,22 @@ jobs:
- name: Get Node.js
uses: actions/setup-node@v6
with:
node-version: 20
node-version: ${{ env.NODE_VERSION }}

- name: Ensure our node version matches the main repo's version
if: github.event_name == 'pull_request'
run: |
[[ "$(curl -s https://raw.githubusercontent.com/opencast/opencast/refs/heads/${{ github.base_ref }}/pom.xml | \
grep node.version | grep -Eo 'v[0-9.]+' | cut -f 1 -d '.' | cut -c 2-)" == "$NODE_VERSION" ]] \
&& exit 0 \
|| (echo "Node version does not match"; exit 1)
- name: Ensure our node version matches the main repo's version
if: github.event_name == 'push'
run: |
[[ "$(curl -s https://raw.githubusercontent.com/opencast/opencast/refs/heads/${{ github.ref_name }}/pom.xml | \
grep node.version | grep -Eo 'v[0-9.]+' | cut -f 1 -d '.' | cut -c 2-)" == "$NODE_VERSION" ]] \
&& exit 0 \
|| (echo "Node version does not match"; exit 1)

- name: Run npm ci
run: npm ci
Expand Down
21 changes: 20 additions & 1 deletion .github/workflows/pr-test-playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
branches:
- develop
- r/*

env:
NODE_VERSION: 24

jobs:
test:

Expand All @@ -20,7 +24,22 @@ jobs:
- name: Install Node Dependency
uses: actions/setup-node@v6
with:
node-version: 20
node-version: ${{ env.NODE_VERSION }}

- name: Ensure our node version matches the main repo's version
if: github.event_name == 'pull_request'
run: |
[[ "$(curl -s https://raw.githubusercontent.com/opencast/opencast/refs/heads/${{ github.base_ref }}/pom.xml | \
grep node.version | grep -Eo 'v[0-9.]+' | cut -f 1 -d '.' | cut -c 2-)" == "$NODE_VERSION" ]] \
&& exit 0 \
|| (echo "Node version does not match"; exit 1)
- name: Ensure our node version matches the main repo's version
if: github.event_name == 'push'
run: |
[[ "$(curl -s https://raw.githubusercontent.com/opencast/opencast/refs/heads/${{ github.ref_name }}/pom.xml | \
grep node.version | grep -Eo 'v[0-9.]+' | cut -f 1 -d '.' | cut -c 2-)" == "$NODE_VERSION" ]] \
&& exit 0 \
|| (echo "Node version does not match"; exit 1)

- name: Install dependencies
run: npm ci
Expand Down
3 changes: 1 addition & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
<properties>
<opencast.basedir>${project.basedir}/../..</opencast.basedir>
<checkstyle.skip>false</checkstyle.skip>
<nodejs.version>v20.10.0</nodejs.version>
</properties>
<profiles>
<profile>
Expand Down Expand Up @@ -101,7 +100,7 @@
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<configuration>
<nodeVersion>${nodejs.version}</nodeVersion>
<nodeVersion>${node.version}</nodeVersion>
<installDirectory>target</installDirectory>
<environmentVariables>
<PUBLIC_URL>/editor-ui</PUBLIC_URL>
Expand Down
Loading