Skip to content

Merge pull request #1419 from wppconnect-team/renovate/lint-staged-15.x #3430

Merge pull request #1419 from wppconnect-team/renovate/lint-staged-15.x

Merge pull request #1419 from wppconnect-team/renovate/lint-staged-15.x #3430

Workflow file for this run

name: lint
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Setup Node
uses: actions/setup-node@v3.8.1
with:
node-version: 16.x
- name: Get npm cache directory
id: npm-cache
run: |
echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT
- name: Setup npm cache
uses: actions/cache@v3
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Dependencies
run: npm ci || npm install
- name: Lint source
run: npm run lint