mirror of
https://github.com/directus/directus.git
synced 2026-01-30 08:47:57 -05:00
* 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>
30 lines
520 B
YAML
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
|