Skip to content

Commit e56f8e5

Browse files
committed
ci: Add prettier test
1 parent c2446b7 commit e56f8e5

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/prettier.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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

0 commit comments

Comments
 (0)