Skip to content

Reduce redundancy #1600

Reduce redundancy

Reduce redundancy #1600

Workflow file for this run

name: CI
on:
push:
pull_request:
branches: [develop]
jobs:
build:
name: Lint, Build, Test & Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Use Node 18
uses: actions/setup-node@v4
with:
node-version: 18
- name: Cache node modules
id: cache-nodemodules
uses: actions/[email protected]
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
- name: Audit npm
run: npm audit --audit-level=high --omit=dev
- name: Lint
run: npm run lint
- name: License check
run: npm run license-check
- name: Build components
run: npm run build-components
- name: Build arlas-map
run: npm run build-map
- name: Build arlas-maplibre
run: npm run build-maplibre
- name: Build arlas-mapbox
run: npm run build-mapbox
- name: Test
run: npm run test
- name: Documentation
env:
# secrets are defined here : https://github.com/organizations/gisaia/settings/secrets/actions
DOCKER_USERNAME: ${{ secrets.DOCKER_HUB_USER }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
run: |
echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin
./mkDocs.sh