Skip to content

Infrastructure/Major: Containerize with Docker/Compose and Kubernetes #15

Infrastructure/Major: Containerize with Docker/Compose and Kubernetes

Infrastructure/Major: Containerize with Docker/Compose and Kubernetes #15

Workflow file for this run

name: Node.js Lint and Build
on:
push:
branches:
- main
- '**'
pull_request:
jobs:
lint-and-build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: 24.13.1
- name: Setup npm
run: npm install -g npm@11.8.0
- name: Fetch node_modules from cache
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install node_modules
run: npm ci
- name: Compile
run: npm run build
- name: Lint
run: npm run ci-lint