Skip to content

Commit 5d3f6d5

Browse files
committed
Merge branch 'master' into feat/grant-round-landing-pages
2 parents 0ac43ef + 2a0ea50 commit 5d3f6d5

File tree

16 files changed

+2122
-392
lines changed

16 files changed

+2122
-392
lines changed

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Setup pnpm
18+
uses: pnpm/action-setup@v4
19+
with:
20+
version: 9
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: '20'
26+
cache: 'pnpm'
27+
28+
- name: Install dependencies
29+
run: pnpm install --frozen-lockfile
30+
31+
- name: Run linter
32+
run: pnpm run lint
33+
34+
- name: Run type check
35+
run: pnpm run type-check
36+
37+
- name: Run tests
38+
env:
39+
SF_PROD_LOGIN_URL: ${{ secrets.SF_PROD_LOGIN_URL }}
40+
SF_PROD_USERNAME: ${{ secrets.SF_PROD_USERNAME }}
41+
SF_PROD_PASSWORD: ${{ secrets.SF_PROD_PASSWORD }}
42+
SF_PROD_SECURITY_TOKEN: ${{ secrets.SF_PROD_SECURITY_TOKEN }}
43+
run: pnpm test

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
"postbuild": "next-sitemap",
1111
"start": "next start",
1212
"lint": "next lint",
13-
"type-check": "tsc --noEmit"
13+
"type-check": "tsc --noEmit",
14+
"test": "vitest",
15+
"test:watch": "vitest watch",
16+
"test:ui": "vitest --ui"
1417
},
1518
"dependencies": {
1619
"@chakra-ui/checkbox": "^1.7.1",
@@ -61,13 +64,16 @@
6164
"@types/validator": "^13.7.12",
6265
"@typescript-eslint/eslint-plugin": "^5.62.0",
6366
"@typescript-eslint/parser": "^5.62.0",
67+
"dotenv": "^17.2.3",
6468
"eslint": "^8.56.0",
6569
"eslint-config-next": "^14.2.35",
6670
"eslint-config-prettier": "^9.1.0",
6771
"prettier": "^3.2.5",
6872
"pretty-bytes": "^7.0.0",
73+
"tsx": "^4.7.0",
6974
"typescript": "^5.3.3",
7075
"validator": "^13.15.22",
76+
"vitest": "^3.0.0",
7177
"zod": "^3.22.3"
7278
},
7379
"keywords": [

0 commit comments

Comments
 (0)