@factiii/stack 0.1.28 → 0.1.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,22 +13,36 @@ on:
13
13
  jobs:
14
14
  ci:
15
15
  runs-on: ubuntu-latest
16
+ env:
17
+ CI: true
18
+ ENV: test
19
+ NODE_ENV: test
20
+ DATABASE_URL: "postgresql://postgres:password@localhost:5440/factiii-test?connect_timeout=300"
21
+ TEST_DATABASE_URL: "postgresql://postgres:password@localhost:5440/factiii-test?connect_timeout=300"
22
+ TEST_ADMIN_IP: "::ffff:127.0.0.1"
23
+ SITE_URL: http://localhost:3000
24
+ ALLOWED_ORIGINS: http://localhost:3000,http://localhost:5001
25
+ ACCESS_TOKEN_SECRET: test-secret-key
26
+ GOOGLE_CLIENT_ID: test-google-id
27
+ APPLE_CLIENT_ID: com.factiii.test
28
+ NEXT_PUBLIC_SITE_URL: http://localhost:3000
29
+ NEXT_PUBLIC_API_URL: http://localhost:5001
30
+
16
31
  steps:
17
32
  - name: Checkout
18
33
  uses: actions/checkout@v4
19
34
 
20
- - name: Setup Node.js
21
- uses: actions/setup-node@v4
22
- with:
23
- node-version: '20'
24
-
25
35
  - name: Setup pnpm
26
36
  uses: pnpm/action-setup@v4
37
+
38
+ - name: Setup Node.js
39
+ uses: actions/setup-node@v4
27
40
  with:
28
- version: 9
41
+ node-version: '24'
42
+ cache: 'pnpm'
29
43
 
30
44
  - name: Install dependencies
31
- run: pnpm install --frozen-lockfile
45
+ run: pnpm install
32
46
 
33
47
  - name: Build server
34
48
  run: pnpm build
@@ -52,5 +66,10 @@ jobs:
52
66
  ./gradlew assembleRelease
53
67
  if: hashFiles('apps/mobile/android/build.gradle') != ''
54
68
 
69
+ - name: Start Docker containers
70
+ run: |
71
+ chmod +x ./start.sh
72
+ ./start.sh
73
+
55
74
  - name: Run tests
56
- run: pnpm test
75
+ run: pnpm test:server
@@ -11,22 +11,36 @@ on:
11
11
  jobs:
12
12
  ci:
13
13
  runs-on: ubuntu-latest
14
+ env:
15
+ CI: true
16
+ ENV: test
17
+ NODE_ENV: test
18
+ DATABASE_URL: "postgresql://postgres:password@localhost:5440/factiii-test?connect_timeout=300"
19
+ TEST_DATABASE_URL: "postgresql://postgres:password@localhost:5440/factiii-test?connect_timeout=300"
20
+ TEST_ADMIN_IP: "::ffff:127.0.0.1"
21
+ SITE_URL: http://localhost:3000
22
+ ALLOWED_ORIGINS: http://localhost:3000,http://localhost:5001
23
+ ACCESS_TOKEN_SECRET: test-secret-key
24
+ GOOGLE_CLIENT_ID: test-google-id
25
+ APPLE_CLIENT_ID: com.factiii.test
26
+ NEXT_PUBLIC_SITE_URL: http://localhost:3000
27
+ NEXT_PUBLIC_API_URL: http://localhost:5001
28
+
14
29
  steps:
15
30
  - name: Checkout
16
31
  uses: actions/checkout@v4
17
32
 
18
- - name: Setup Node.js
19
- uses: actions/setup-node@v4
20
- with:
21
- node-version: '20'
22
-
23
33
  - name: Setup pnpm
24
34
  uses: pnpm/action-setup@v4
35
+
36
+ - name: Setup Node.js
37
+ uses: actions/setup-node@v4
25
38
  with:
26
- version: 9
39
+ node-version: '24'
40
+ cache: 'pnpm'
27
41
 
28
42
  - name: Install dependencies
29
- run: pnpm install --frozen-lockfile
43
+ run: pnpm install
30
44
 
31
45
  - name: Build server
32
46
  run: pnpm build
@@ -50,5 +64,10 @@ jobs:
50
64
  ./gradlew assembleRelease
51
65
  if: hashFiles('apps/mobile/android/build.gradle') != ''
52
66
 
67
+ - name: Start Docker containers
68
+ run: |
69
+ chmod +x ./start.sh
70
+ ./start.sh
71
+
53
72
  - name: Run tests
54
- run: pnpm test
73
+ run: pnpm test:server
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factiii/stack",
3
- "version": "0.1.28",
3
+ "version": "0.1.29",
4
4
  "description": "Infrastructure management package for deploying services to servers",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",