-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 924 Bytes
/
lints.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
33
34
35
36
name: lints
on:
pull_request:
branches-ignore:
- dependabot/**
push:
paths-ignore: []
branches-ignore: []
tags-ignore:
- "*"
jobs:
# Set the job key. The key is displayed as the job name
# when a job name is not provided
js:
if: "!(contains(github.event.head_commit.message, 'Merge') && contains(github.event.head_commit.message, '/dependabot/')) && ${{ github.actor != 'dependabot[bot]' }}"
timeout-minutes: 10
# Name the Job
name: javascript
# Set the type of machine to run on
runs-on: ubuntu-latest
steps:
# Checks out a copy of your repository on the ubuntu-latest machine
- name: Checkout code
uses: actions/checkout@v4.2.2
- name: node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: install
run: npm ci
- name: Run ESLint
run: npm run lint