forked from karrioapi/karrio
-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (65 loc) · 1.87 KB
/
platform-tests.yml
File metadata and controls
74 lines (65 loc) · 1.87 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: platform-tests
on: [push]
permissions:
contents: read
jobs:
server-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
token: ${{ secrets.GH_PAT }}
- name: Run Tests
env:
ENABLE_ALL_PLUGINS_BY_DEFAULT: true
run: |
./bin/setup-server-env -v &&
./bin/cli plugins list &&
./bin/migrate &&
./bin/run-server-tests -v
platform-ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
token: ${{ secrets.GH_PAT }}
- uses: actions/setup-node@v3
with:
node-version: 22.x
- name: Install
run: |
npm install -g corepack
mkdir -p ~/.volta/bin
corepack enable --install-directory ~/.volta/bin
npm install
- name: Test Build
run: |
cp ee/apps/platform/.env.sample ee/apps/platform/.env
npm run prisma:generate -w ee/apps/platform
npm run build -w ee/apps/platform
web-ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
token: ${{ secrets.GH_PAT }}
- uses: actions/setup-node@v3
with:
node-version: 22.x
- name: Install
run: |
npm install -g corepack
mkdir -p ~/.volta/bin
corepack enable --install-directory ~/.volta/bin
- name: Test Build
run: |
npm ci
npm run build -w apps/web