File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Prettier
2
+
3
+ on :
4
+ push :
5
+ branches : [ master ]
6
+ pull_request :
7
+ branches : [ master ]
8
+
9
+ jobs :
10
+ build :
11
+ runs-on : ubuntu-latest
12
+ strategy :
13
+ matrix :
14
+ node-version : ['16']
15
+ steps :
16
+ - uses : actions/checkout@v2
17
+ - name : Use Node.js ${{ matrix.node-version }}
18
+ uses : actions/setup-node@v2
19
+ with :
20
+ node-version : ${{ matrix.node-version }}
21
+ check-latest : true
22
+ - name : Cache Node.js modules
23
+ id : yarn-cache
24
+ uses : actions/cache@v2
25
+ with :
26
+ path : ' **/node_modules'
27
+ key : ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}-${{ matrix.node-version }}
28
+ - name : Install dependencies
29
+ if : steps.yarn-cache.outputs.cache-hit != 'true'
30
+ run : yarn install --frozen-lockfile
31
+ - name : Build
32
+ run : yarn prettier:lint
You can’t perform that action at this time.
0 commit comments