From 78ff4df93f46d573c7bd19de4b8d7fa300abab78 Mon Sep 17 00:00:00 2001 From: Stefan Haun Date: Tue, 29 Oct 2024 11:07:43 +0100 Subject: [PATCH] Setup nodejs in the build workflows --- .github/workflows/docker-build.yml | 5 +++++ .github/workflows/maven-test.yml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 34f7c58..300abc8 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -41,6 +41,11 @@ jobs: key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '16' + - name: Run Maven Build run: mvn clean package -Pproduction diff --git a/.github/workflows/maven-test.yml b/.github/workflows/maven-test.yml index 827ebae..e629538 100644 --- a/.github/workflows/maven-test.yml +++ b/.github/workflows/maven-test.yml @@ -28,5 +28,10 @@ jobs: key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '16' + - name: Run tests run: mvn --batch-mode --update-snapshots -Pproduction clean verify \ No newline at end of file