Skip to content

Commit cbbbe1a

Browse files
authored
Merge pull request #4628 from abdelaziz-mahdy/auto-run-server-tests-
Auto run server tests
2 parents 24f3b71 + 30dce8a commit cbbbe1a

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/server-tests.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Server Tests
2+
3+
on:
4+
pull_request:
5+
branches: [ development ]
6+
push:
7+
branches: [ development ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
server-tests:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Java
19+
uses: actions/setup-java@v4
20+
with:
21+
distribution: 'temurin'
22+
java-version: '21'
23+
24+
- name: Set up Node.js
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: '20'
28+
cache: 'npm'
29+
30+
- name: Install Node.js dependencies
31+
run: npm ci
32+
33+
- name: Create application directory
34+
run: |
35+
sudo mkdir -p /opt/foam
36+
sudo chown -R $USER /opt/foam
37+
38+
- name: Run server tests
39+
run: ./build.sh server-tests

0 commit comments

Comments
 (0)