Skip to content

deps(deps): update dependencies-non-major #703

deps(deps): update dependencies-non-major

deps(deps): update dependencies-non-major #703

name: Linting and Unit Tests
permissions:
contents: write
packages: write
on:
push:
branches: [main, staging]
pull_request:
branches: [main, staging]
jobs:
lint-and-unit-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code ⬇️
uses: actions/checkout@v4
- name: Setup Node.js using .nvmrc ⚙️
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: npm
- name: Cache npm dependencies 💾
id: cache-npm-deps
uses: actions/cache@v4
with:
path: |
**/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies 📦
if: steps.cache-npm-deps.outputs.cache-hit != 'true'
run: npm ci
- name: Check Build 🏗️
run: npm run build
- name: Check Prettier 🧹
run: npm run prettier:ci
- name: Check Lint 🔎
run: npm run lint
- name: Run Unit Tests 🧪
run: npm run test:unit