Skip to content

Commit 3725d9c

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

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

.github/workflows/ci.yml

Lines changed: 28 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,30 @@ jobs:
8686
git --no-pager diff
8787
exit 1
8888
fi
89+
90+
jobs:
91+
lint-and-typecheck:
92+
name: Lint & Type Check
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: yarn
106+
cache-dependency-path: functions/yarn.lock
107+
108+
- name: Install dependencies
109+
run: yarn install --frozen-lockfile
110+
111+
- name: Run ESLint
112+
run: yarn lint
113+
114+
- name: Run TypeScript type check
115+
run: yarn tsc --noEmit

0 commit comments

Comments
 (0)