This repository was archived by the owner on Sep 2, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +25
-1
lines changed Expand file tree Collapse file tree 3 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 1
1
APP_ENV = dev
2
2
DATABASE_URL = mongodb://mongo:27017
3
+ DATA_STORE = mongo
3
4
JWT_SECRET = changeMe
4
5
MAIL_PROVIDER = dev
5
6
STORAGE_PROVIDER = local
Original file line number Diff line number Diff line change
1
+ APP_ENV=dev
2
+ DATABASE_URL=mongodb://localhost:27017
3
+ DATA_STORE=mongo
4
+ JWT_SECRET=changeMe
5
+ MAIL_PROVIDER=dev
6
+ STORAGE_PROVIDER=local
7
+
8
+ FROM_NAME=Your company
9
+ REDIS_HOST=localhost:6379
10
+ REDIS_PASSWORD=
11
+ LOCAL_STORAGE_URL=http://localhost:8099
Original file line number Diff line number Diff line change 20
20
uses : actions/setup-go@v2
21
21
with :
22
22
go-version : 1.17
23
+
24
+ - name : Setup .env file (mongo)
25
+ run : mv .gh-actions-env .env
23
26
24
27
- name : Build
25
28
run : make build
26
29
27
- - name : Test
30
+ - name : Test (Mongo data store)
31
+ run : make alltest
32
+
33
+ - name : Change DATA_STORAGE to PostgreSQL
34
+ run : sed -i 's/DATA_STORAGE=mongo/DATA_STORAGE=pg/g' .env
35
+
36
+ - name : Change DATABASE_URL to PG connection string
37
+ run : sed -i 's/DATABASE_URL=mongodb:\/\/localhost:27017/DATABASE_URL=user=postgres password=postgres dbname=postgres sslmode=disable/g' .env
38
+
39
+ - name : Test (PostgreSQL data store)
28
40
run : make alltest
You can’t perform that action at this time.
0 commit comments