-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.04 KB
/
textlint.yaml
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
name: textlint
on:
pull_request:
branches:
- main
defaults:
run:
working-directory: ./
jobs:
textlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 18
- id: node_modules_cache_id
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: '**/node_modules'
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install modules
if: ${{ steps.node_modules_cache_id.outputs.cache-hit != 'true' }}
run: yarn install
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v39
- name: Run textlint
run: yarn textlint ${{ steps.changed-files.outputs.all_changed_files }}