forked from jamsocket/y-sweet
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (46 loc) · 1.53 KB
/
check-ts.yml
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
50
51
52
53
54
55
56
57
58
name: Check TypeScript code
on:
pull_request:
branches: [ "main" ]
paths:
- ".github/workflows/check-ts.yml"
- "examples/**"
- "debugger/**"
- "tests/**"
- "js-pkg/**"
jobs:
check-ts-format:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '16'
- name: Check Formatting of Examples
run: npx prettier --check "**/src/**/*.{js,ts,tsx}"
working-directory: examples/
- name: Check Formatting of Debugger
run: npx prettier --check "src/**/*.{ts,tsx}"
working-directory: debugger/
- name: Check Formatting of Tests
run: npx prettier --check "src/**/*.ts"
working-directory: tests/
- name: Check Formatting of React lib
run: npx prettier --check "src/**/*.{ts,tsx}"
working-directory: js-pkg/react/
- name: Check Formatting of SDK
run: npx prettier --check "src/**/*.{ts,tsx}"
working-directory: js-pkg/sdk/
- name: Check Formatting of client
run: npx prettier --check "src/**/*.{ts,tsx}"
working-directory: js-pkg/client/
- name: Check Formatting of doc generator
run: npx prettier --check "**/*.{ts,tsx}"
working-directory: js-pkg/gen-docs/
- name: Check Formatting of scripts
run: npx prettier --check "**/*.{ts,tsx}"
working-directory: scripts/
- name: Check that workspace package versions match
run: npx tsx scripts/set-js-versions.ts