Skip to content

Commit f1e4c53

Browse files
committed
Add prettier job to GitHub Actions
1 parent 6e7d630 commit f1e4c53

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,37 @@ jobs:
4141
- name: Run tests
4242
run: yarn lint
4343

44+
prettier:
45+
name: Prettier
46+
runs-on: ubuntu-latest
47+
48+
steps:
49+
- name: Checkout
50+
uses: actions/checkout@v3
51+
52+
- name: Cache .yarn/cache
53+
uses: actions/cache@v3
54+
env:
55+
cache-name: yarn-cache
56+
with:
57+
path: .yarn/cache
58+
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
59+
restore-keys: |
60+
${{ runner.os }}-${{ env.cache-name }}
61+
62+
- name: Use Node.js
63+
uses: actions/setup-node@v3
64+
with:
65+
node-version: '16'
66+
67+
- name: Install dependencies
68+
run: yarn --immutable
69+
env:
70+
HUSKY: 0
71+
72+
- name: Prettier
73+
run: yarn prettier
74+
4475
unit:
4576
name: Unit tests
4677
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)