-
Notifications
You must be signed in to change notification settings - Fork 16
74 lines (59 loc) · 2.12 KB
/
ci-geoserver-node-client.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: ci-geoserver-node-client
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
run-tests-maintenance:
runs-on: ubuntu-latest
env:
GEOSERVER_VERSION: 2.24.4
steps:
- name: Install program "wait-for-it"
run: sudo apt install wait-for-it
# use Node.js 16 instead of deprecated v12 in Ubuntu image
- uses: actions/setup-node@v3
with:
node-version: '16'
- uses: actions/checkout@v4
# In this step, this action saves a list of existing images,
# the cache is created without them in the post run.
# It also restores the cache if it exists.
- uses: satackey/[email protected]
# Ignore the failure of a step and avoid terminating the job.
continue-on-error: true
- run: docker compose -f test/docker-compose.yml up -d
# finishes when tomcat of GeoServer is running
- run: wait-for-it "localhost:8080"
# we use wget to ensure that GeoServer is running
- run: wget http://localhost:8080/geoserver/web
- run: npm install
- run: npm run test
run-tests-stable:
runs-on: ubuntu-latest
env:
GEOSERVER_VERSION: 2.25.2
steps:
- name: Install program "wait-for-it"
run: sudo apt install wait-for-it
# use Node.js 16 instead of deprecated v12 in Ubuntu image
- uses: actions/setup-node@v3
with:
node-version: '16'
- uses: actions/checkout@v4
# In this step, this action saves a list of existing images,
# the cache is created without them in the post run.
# It also restores the cache if it exists.
- uses: satackey/[email protected]
# Ignore the failure of a step and avoid terminating the job.
continue-on-error: true
- run: docker compose -f test/docker-compose.yml up -d
# finishes when tomcat of GeoServer is running
- run: wait-for-it "localhost:8080"
# we use wget to ensure that GeoServer is running
- run: wget http://localhost:8080/geoserver/web
- run: npm install
- run: npm run test