Merge pull request #37 from theaminuli/aminul/dev #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run checks | ||
on: | ||
pull_request: | ||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup Node | ||
uses: actions/setup-node@v4.1.0 | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: npm | ||
- name: Install Dependencies | ||
run: npm install --legacy-peer-deps | ||
- name: Run JS Lint | ||
if: success() || failure() | ||
run: npm run lint:js | ||
- name: Run CSS Lint | ||
if: success() || failure() | ||
run: npm run lint:css | ||
- name: Run package.json Lint | ||
if: success() || failure() | ||
run: npm run lint:pkg-json |