Skip to content

Commit 64d35fc

Browse files
committed
ci(add-lint-typescript): Add CI workflow
1 parent f966bf8 commit 64d35fc

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

.github/workflows/ci.yml

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Python check
1+
name: CI check
22

33
on:
44
pull_request:
@@ -86,3 +86,39 @@ jobs:
8686
git --no-pager diff
8787
exit 1
8888
fi
89+
90+
jobs:
91+
lint-typecheck-build:
92+
name: Lint, Type Check & Build
93+
runs-on: ubuntu-latest
94+
defaults:
95+
run:
96+
working-directory: functions
97+
steps:
98+
- name: Checkout repository
99+
uses: actions/checkout@v4
100+
101+
- name: Setup Node.js
102+
uses: actions/setup-node@v4
103+
with:
104+
node-version: 22
105+
cache: pnpm
106+
cache-dependency-path: functions/pnpm-lock.yaml
107+
108+
- name: Setup pnpm
109+
uses: pnpm/action-setup@v4
110+
with:
111+
version: 9
112+
run_install: false
113+
114+
- name: Install dependencies
115+
run: pnpm install --frozen-lockfile
116+
117+
- name: Run ESLint
118+
run: pnpm lint
119+
120+
- name: Run TypeScript type check
121+
run: pnpm typecheck
122+
123+
- name: Run build
124+
run: pnpm build

0 commit comments

Comments
 (0)