Skip to content

Commit 7aab28e

Browse files
committed
Add install step on formatting CI
1 parent 53fc064 commit 7aab28e

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

.github/workflows/format.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ on:
77
- master
88

99
jobs:
10-
check-formatting:
11-
name: 'Check Formatting'
10+
install:
11+
name: "Install"
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout files
@@ -17,5 +17,16 @@ jobs:
1717
- name: Install node_modules
1818
uses: OffchainLabs/actions/node-modules/install@main
1919

20+
check-formatting:
21+
name: 'Check Formatting'
22+
runs-on: ubuntu-latest
23+
needs: install
24+
steps:
25+
- name: Checkout files
26+
uses: actions/checkout@v4
27+
28+
- name: Restore node_modules
29+
uses: OffchainLabs/actions/node-modules/restore@main
30+
2031
- name: Check formatting with Prettier
21-
run: yarn prettier:format
32+
run: yarn prettier:format

0 commit comments

Comments
 (0)