Skip to content

Merge pull request #65 from PythonBulawayo/Home_TMushonga #30

Merge pull request #65 from PythonBulawayo/Home_TMushonga

Merge pull request #65 from PythonBulawayo/Home_TMushonga #30

name: Front-end Eslint
on:
push:
branches: [ "main", "develop" ]
paths:
- 'frontend/**'
pull_request:
branches: [ "main", "develop" ]
paths:
- 'frontend/**'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- name: Update npm
working-directory: frontend
run: npm install -g npm@latest
- name: Install dependencies
working-directory: frontend
run : npm install
- name: Lint code
working-directory: frontend
run: npm run lint