-
Notifications
You must be signed in to change notification settings - Fork 39
41 lines (39 loc) · 1.11 KB
/
CI.yml
File metadata and controls
41 lines (39 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: CI
on: [pull_request]
jobs:
build_2024:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: 2024/package-lock.json
- run: cd 2024 && npm ci --legacy-peer-deps
- run: cd 2024 && npm run build -- --prefix-paths
test_2025:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: 2025/package-lock.json
- run: cd 2025 && npm ci
- run: cd 2025 && npm run lint
- run: cd 2025 && npm run test
build_2025:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: 2025/package-lock.json
- run: cd 2025 && npm ci
- run: cd 2025 && npm run build
env:
NEXT_PUBLIC_GOOGLE_MAPS_API_KEY: ${{ secrets.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY }}