Skip to content

Merge pull request #238 from meggsimum/dependabot/npm_and_yarn/babel/… #531

Merge pull request #238 from meggsimum/dependabot/npm_and_yarn/babel/…

Merge pull request #238 from meggsimum/dependabot/npm_and_yarn/babel/… #531

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