-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (53 loc) · 1.26 KB
/
Copy pathprettier.yml
File metadata and controls
53 lines (53 loc) · 1.26 KB
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
50
51
52
53
jobs:
prettier:
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1'
with:
persist-credentials: false
- name: 'Yarn cache'
uses: 'actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9'
with:
key: "${{ runner.os }}-yarn-${{ hashFiles('yarn.lock', '.yarnrc.yml') }}"
path: '~/.yarn/berry'
restore-keys: '${{ runner.os }}-yarn'
- name: 'Install dependencies (Yarn)'
run: 'yarn'
- name: 'Check formatting (Prettier)'
run: 'yarn prettier --check .'
name: 'Prettier'
'on':
pull_request:
branches:
- 'master'
paths:
- '**/*.css'
- '**/*.html'
- '**/*.json'
- '**/*.md'
- '**/*.mdc'
- '**/*.scss'
- '**/*.toml'
- '**/*.xml'
- '**/*.yaml'
- '**/*.yml'
- '.github/workflows/prettier.yml'
- '.prettierignore'
push:
branches:
- 'master'
paths:
- '**/*.css'
- '**/*.html'
- '**/*.json'
- '**/*.md'
- '**/*.mdc'
- '**/*.scss'
- '**/*.toml'
- '**/*.xml'
- '**/*.yaml'
- '**/*.yml'
- '.github/workflows/prettier.yml'
- '.prettierignore'
permissions:
contents: 'read'