forked from IBM/beacon-for-ibm-dotcom
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 732 Bytes
/
Copy pathlint.yml
File metadata and controls
38 lines (31 loc) · 732 Bytes
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
37
38
name: Lint
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: lint-${{ github.ref }}
cancel-in-progress: true
jobs:
run-linters:
if: github.event.pull_request.head.repo.full_name == github.repository
name: Run linters
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install Node.js dependencies
run: yarn install
- name: Run linters
uses: wearerequired/lint-action@v1
with:
auto_fix: true
eslint: true
prettier: true