Skip to content

Commit b5ae548

Browse files
authored
Merge pull request #80 from ArendJan/updNodeBackend
Update for newer nodejs as v18 is too old
2 parents 76c5d01 + 950f902 commit b5ae548

5 files changed

Lines changed: 912 additions & 1982 deletions

File tree

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Node.js Build
1+
name: Backend install and build check
22

33
on:
44
push:
@@ -10,12 +10,12 @@ jobs:
1010

1111
steps:
1212
- name: Checkout code
13-
uses: actions/checkout@v4
13+
uses: actions/checkout@v7
1414

1515
- name: Set up Node.js
16-
uses: actions/setup-node@v4
16+
uses: actions/setup-node@v7
1717
with:
18-
node-version: '16'
18+
node-version: 'current'
1919
check-latest: true
2020

2121
- name: Install dependencies
@@ -27,18 +27,18 @@ jobs:
2727
# as soon as we have remove the login from
2828
# back- and frondend (and tested its working
2929
# with nginx)
30-
# - name: Run build
31-
# run: |
32-
# cd nodejs-backend
33-
# exit_status=0
34-
# timeout 60 npm run backend || exit_status=$?
35-
#
36-
# if [[ $exit_status -eq 124 ]]; then
37-
# echo "Backend ran good!"
38-
# else
39-
# echo "Backend run failed!"
40-
# exit 1
41-
# fi
30+
- name: Run build
31+
run: |
32+
cd nodejs-backend
33+
exit_status=0
34+
timeout 60 npm run backend || exit_status=$?
35+
36+
if [[ $exit_status -eq 124 ]]; then
37+
echo "Backend ran good!"
38+
else
39+
echo "Backend run failed!"
40+
exit 1
41+
fi
4242
4343
# - name: Run tests
4444
# run: npm test

.github/workflows/buildFrontend.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v6
9+
- uses: actions/checkout@v7
1010
- name: Install dependencies
1111
run: |
1212
sudo apt install -y python3-pip python3-setuptools python3-wheel
@@ -87,6 +87,7 @@ jobs:
8787

8888
deploy:
8989
needs: build
90+
if: github.ref_name == github.event.repository.default_branch
9091
permissions:
9192
pages: write # to deploy to Pages
9293
id-token: write # to verify the deployment originates from an appropriate source

0 commit comments

Comments
 (0)