-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (38 loc) · 1.25 KB
/
src.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Lint
# Don't limit by paths so that Lint can be used as a required workflow.
# See: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-including-paths.
on:
push:
branches:
- master
paths:
- '**.js'
# Allows this workflow to be called from other workflows.
workflow_call:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
run-linters:
name: Run Linters
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install Node.js dependencies
run: npm ci
- name: Run linter action
uses: wearerequired/lint-action@v2
with:
eslint: true
eslint_args: "--config .eslintrc.yml --ignore-path .eslintignore"
auto_fix: true
commit_message: |
chore(lint): fix issues with ${linter}
[skip ci]
# `[skip ci]` skips workflow calls triggered by this eslint fix push.
# See https://docs.github.com/en/actions/managing-workflow-runs/skipping-workflow-runs