Skip to content

Update Dockerfile: use node:lts-slim base image #105

Update Dockerfile: use node:lts-slim base image

Update Dockerfile: use node:lts-slim base image #105

Workflow file for this run

# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [ devel ]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# https://github.com/actions/setup-node?tab=readme-ov-file#supported-version-syntax
node-version:
- 'lts/iron' # 20.x
- 'lts/*' # 22.x
- 'latest' # 23.x
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: |
node -v
npm ci
- run: npm test
- run: npm run lint