Skip to content

ADD: Docker, Profile components +minor-fixies and something else #19

ADD: Docker, Profile components +minor-fixies and something else

ADD: Docker, Profile components +minor-fixies and something else #19

Workflow file for this run

name: CI Pipeline
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Cache node modules
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 install
- name: Run Lint and Format
run: npm run lint && npm run lint:css && npm run format
- name: Run Tests
run: npm test
- name: Build Project
run: npm run build
clean_cache:
runs-on: ubuntu-latest
if: always()
steps:
- name: Clean npm cache
run: npm cache clean --force