Skip to content

Commit b733724

Browse files
authored
Merge pull request #43 from mapswipe/add/github-actions
2 parents 642f990 + 5c877d5 commit b733724

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Python check
1+
name: Pre-Commit & JS Checks
22

33
on:
44
pull_request:
@@ -86,3 +86,34 @@ jobs:
8686
git --no-pager diff
8787
exit 1
8888
fi
89+
90+
js_checks:
91+
name: JS Lint & Build
92+
runs-on: ubuntu-latest
93+
94+
steps:
95+
- uses: actions/checkout@main
96+
97+
- name: Install pnpm
98+
uses: pnpm/action-setup@v4
99+
with:
100+
package_json_file: ./functions/package.json
101+
102+
- name: Setup node environment
103+
uses: actions/setup-node@v4
104+
with:
105+
node-version-file: ./functions/package.json
106+
cache: 'pnpm'
107+
cache-dependency-path: ./functions/pnpm-lock.yaml
108+
109+
- name: Install JS dependencies
110+
working-directory: ./functions
111+
run: pnpm install --frozen-lockfile
112+
113+
- name: Run lint
114+
working-directory: ./functions
115+
run: pnpm lint
116+
117+
- name: Build project
118+
working-directory: ./functions
119+
run: pnpm build

0 commit comments

Comments
 (0)