Skip to content

Merge pull request #2 from mahabubx7/dev #7

Merge pull request #2 from mahabubx7/dev

Merge pull request #2 from mahabubx7/dev #7

Workflow file for this run

name: Linters
on:
push:
env:
FORCE_COLOR: 1
jobs:
eslint:
name: ESLint
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '18.x'
- name: Setup ESLint
run: |
npm install --frozen-lockfile
[ -f .eslintrc.json ]
- name: ESLint Report
run: npm run lint
nodechecker:
name: node_modules checker
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Check node_modules existence
run: |
if [ -d "node_modules/" ]; then echo -e "\e[1;31mThe node_modules/ folder was pushed to the repo. Please remove it from the GitHub repository and try again."; echo -e "\e[1;32mYou can set up a .gitignore file with this folder included on it to prevent this from happening in the future." && exit 1; fi