Skip to content

[Backport 5.1.x] #2581 Dataset geo limits are not saved #1793

[Backport 5.1.x] #2581 Dataset geo limits are not saved

[Backport 5.1.x] #2581 Dataset geo limits are not saved #1793

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: GeoNode Client 5.1.x CI (tests)
# Controls when the workflow will run
on:
# Triggers the workflow pull request events but only for the 5.1.x branch
pull_request:
branches: [ 5.1.x ]
paths:
- "geonode_mapstore_client/client/**"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
test-front-end:
env:
working-directory: ./geonode_mapstore_client/client
runs-on: ubuntu-latest
steps:
- name: "Checking out"
uses: actions/checkout@v4
- name: Checkout submodules
run: git submodule update --init --recursive
- name: "Setting up npm"
uses: actions/setup-node@v4
with:
node-version: 20
############
# CACHING
##########
- name: "Cache node modules"
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
###############
# NPM CHECKS
#############
- name: "Run JsDoc"
run: |
npm install jsdoc@4.0.0 -g
npm install @jsdoc/salty@0.2.1 -g
npm run docs
working-directory: ${{env.working-directory}}
- name: "Run npm install"
run: npm install
working-directory: ${{env.working-directory}}
- name: "Run ESlint"
run: npm run lint
working-directory: ${{env.working-directory}}
- name: "Run Unit Tests"
run: npm test
working-directory: ${{env.working-directory}}