forked from athombv/node-homey-log
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (26 loc) · 935 Bytes
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Lint
# GitHub repo configuration:
# 1. If you have protected branches, go to Branches > edit protected branch > enable 'Require status checks to pass before
# merging' and select the 'Lint' status check.
# Note: make sure to commit package-lock.json, this is needed for `npm ci`.
# Defines the trigger for this action (e.g. [pull_request, push])
# For more information see: https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows#about-workflow-events)
on:
workflow_dispatch:
pull_request:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Setup
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
registry-url: 'https://npm.pkg.github.com'
# Lint
- run: |
npm ci --ignore-scripts --audit=false
npm run lint