Files
directus/.github/workflows/lint.yml
Pascal Jufer 6994bba791 Revise GitHub workflows #2 (#9240)
* GitHub workflow revision #2

* Add a few comments

* Add and fix comments

* Move kodiak config into .github

To not overflow the root directory

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-11-01 11:05:13 -04:00

30 lines
520 B
YAML

name: Lint
on:
workflow_call:
inputs:
should_skip:
required: false
type: string
jobs:
lint:
name: Lint
if: inputs.should_skip != 'true'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
cache: npm
- name: Install dependencies
run: npm ci
- name: Run linters
run: npm run lint