Skip to content

Commit e8269c6

Browse files
jacksonGilesJackson Giles
andauthored
github checks for frontend (#62)
* github checks for frontend * corrected branches * cd into frontend * ight one more time * trying again * dependency path check * corrected formatting * Revert "corrected formatting" This reverts commit 7c4dae5. * removed prettier check and updated package lock --------- Co-authored-by: Jackson Giles <[email protected]>
1 parent c770e7f commit e8269c6

File tree

4 files changed

+535
-551
lines changed

4 files changed

+535
-551
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Frontend Checks
2+
3+
on:
4+
push:
5+
branches: [ main, develop ]
6+
pull_request:
7+
branches: [ main, develop ]
8+
9+
jobs:
10+
build-and-validate:
11+
runs-on: ubuntu-latest
12+
13+
defaults:
14+
run:
15+
working-directory: grasshopper-frontend
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Use Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: '23'
25+
cache: 'npm'
26+
cache-dependency-path: grasshopper-frontend/package-lock.json
27+
28+
- name: Install dependencies
29+
run: npm ci
30+
31+
- name: ESLint check
32+
run: npm run lint
33+
34+
# - name: Prettier format check
35+
# run: npm run format:check
36+
37+
- name: Build
38+
run: npm run build
39+
40+
- name: Copy build artifacts
41+
run: npm run postbuild

0 commit comments

Comments
 (0)