generated from jphacks/JP_sample
-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (43 loc) · 1.15 KB
/
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
name: lint
on:
pull_request:
types:
- opened
- synchronize
- reopened
- closed
branches:
- develop
jobs:
lint:
name: lint
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: checkout
uses: actions/[email protected]
- name: set up node
uses: actions/[email protected]
with:
node-version: "20"
- name: install stylelint #依存関係周りでエラー出るのでここに書いた
working-directory: client
run: npm install stylelint stylelint-config-standard-scss --legacy-peer-deps
- name: biome-lint
uses: mongolyy/reviewdog-action-biome@v1
with:
workdir: client
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
filter_mode: 'added'
- name: stylelint
uses: reviewdog/action-stylelint@v1
with:
workdir: client
fail_on_error: 'true'
filter_mode: 'added'
reporter: github-pr-review # Change reporter.
stylelint_input: '**/*.scss'