forked from coinbase/x402
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.13 KB
/
check_format.yml
File metadata and controls
41 lines (39 loc) · 1.13 KB
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
name: Format
on: [pull_request]
jobs:
check-format-typescript:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda
with:
run_install: false
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "pnpm"
cache-dependency-path: ./typescript
- name: Ensure formatting
working-directory: ./typescript
run: |
pnpm install --frozen-lockfile
pnpm format:check
check-format-examples-typescript:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda
with:
run_install: false
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "pnpm"
cache-dependency-path: ./examples/typescript
- name: Ensure formatting
working-directory: ./examples/typescript
run: |
pnpm install --frozen-lockfile
pnpm format:check