File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Node.js Build
1+ name : Backend install and build check
22
33on :
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
Original file line number Diff line number Diff line change 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
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
You can’t perform that action at this time.
0 commit comments