-
-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (38 loc) · 1.16 KB
/
check-format.yaml
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
name: Check format
on: push
jobs:
swift-format-check:
name: Swift format check 💅
runs-on: macos-latest
steps:
- uses: swift-actions/setup-swift@65540b95f51493d65f5e59e97dcef9629ddf11bf
with:
swift-version: 5.10
- uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- uses: pnpm/action-setup@v3
with:
version: 8
- name: Check JS format
run: |
pnpm install
pnpm format:swift:check
js-format-check:
name: JS format check 💅
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- uses: pnpm/action-setup@v3
with:
version: 8
- name: Check JS format
run: |
pnpm install
pnpm format:prettier:check