update package.json to-24.2.0 #511
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
pull_request: | |
branches: [develop] | |
jobs: | |
build: | |
name: Lint, Build, Test & Documentation | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node 16 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Cache node modules | |
id: cache-nodemodules | |
uses: actions/cache@v3 | |
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 | |
- name: Lint | |
run: npm run lint | |
- name: Build | |
run: npm run build-release | |
- 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 |