-
Notifications
You must be signed in to change notification settings - Fork 256
109 lines (96 loc) · 2.68 KB
/
e2e-cli-master.yaml
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
name: e2e-cli-master
on:
push:
branches:
- master
pull_request:
jobs:
# TODO: re-enable after 0.8 to check cmd spawning fix
saas-template-win32:
name: Create saas (win32)
runs-on: windows-latest
permissions:
contents: read
steps:
- name: Checkout the code
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
components: rustfmt
- name: Install seaorm cli
run: cargo install sea-orm-cli
- run: |
cargo install --path .
working-directory: ./loco-cli
- run: |
loco new -n saas -t saas --db sqlite --bg async --assets serverside
env:
ALLOW_IN_GIT_REPO: true
- run: |
cargo build
working-directory: ./saas
- run: |
cargo loco routes
working-directory: ./saas
- run: |
cargo loco db migrate
working-directory: ./saas
- run: |
cargo loco generate scaffold movie title:string --htmx
working-directory: ./saas
- run: |
cargo loco db migrate
working-directory: ./saas
saas-template:
name: Create saas
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout the code
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
- run: |
cargo install loco-cli
ALLOW_IN_GIT_REPO=true LOCO_APP_NAME=saas LOCO_TEMPLATE=saas loco new --db postgres --bg queue --assets serverside
- run: |
cargo build
working-directory: ./saas
rest-api:
name: Create rest-api
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout the code
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
- run: |
cargo install loco-cli
ALLOW_IN_GIT_REPO=true LOCO_APP_NAME=restapi LOCO_TEMPLATE=rest-api loco new --db postgres --bg queue
- run: |
cargo build
working-directory: ./restapi
lightweight-service:
name: Create lightweight-service
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout the code
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
override: true
- run: |
cargo install loco-cli
ALLOW_IN_GIT_REPO=true LOCO_APP_NAME=lightweight LOCO_TEMPLATE=lightweight-service loco new
- run: |
cargo build
working-directory: ./lightweight