mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-28 01:48:11 +03:00
Move certain properties to environment variables from conf.json5
This commit is contained in:
Vendored
-2
@@ -1,7 +1,6 @@
|
||||
// Config file that the CI deployment uses. This is moved to $pwd/conf.json5 before CI tests are ran.
|
||||
|
||||
{
|
||||
MONGO_CONNECTION_URL: "127.0.0.1:27017",
|
||||
MONGO_DATABASE_NAME: "testingdb",
|
||||
LOG_LEVEL: "info",
|
||||
CAPTCHA_SECRET_KEY: "unused",
|
||||
@@ -22,7 +21,6 @@
|
||||
},
|
||||
ARC_AUTH_TOKEN: "unused",
|
||||
CDN_FILE_ROOT: "./test-cdn",
|
||||
PORT: 8080,
|
||||
TYPE: "omni",
|
||||
ENABLE_SERVER_HTTPS: false,
|
||||
RUN_OWN_CDN: true,
|
||||
|
||||
Vendored
+4
-29
@@ -40,6 +40,10 @@ jobs:
|
||||
|
||||
- name: Run Tests
|
||||
run: pnpm test
|
||||
env:
|
||||
PORT: 8080
|
||||
MONGO_URL: "127.0.0.1"
|
||||
REDIS_URL: "127.0.0.1"
|
||||
|
||||
- name: Lint Code
|
||||
run: pnpm lint
|
||||
@@ -49,32 +53,3 @@ jobs:
|
||||
run: |
|
||||
pnpm install -g codecov
|
||||
cat coverage/lcov.info | codecov
|
||||
# deploy:
|
||||
# if: ${{ github.ref == 'master' }}
|
||||
# needs: test
|
||||
# name: Deploy
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - name: Checkout Code
|
||||
# uses: actions/checkout@v2
|
||||
|
||||
# - name: Install Node.js 15
|
||||
# uses: actions/setup-node@v2
|
||||
# with:
|
||||
# node-version: 15.x
|
||||
|
||||
# - name: Install PNPM
|
||||
# uses: pnpm/action-setup@v2.0.1
|
||||
# with:
|
||||
# version: 6.0.2
|
||||
|
||||
# # configure external dbs
|
||||
# - uses: supercharge/mongodb-github-action@1.4.1
|
||||
# - uses: supercharge/redis-github-action@1.1.0
|
||||
|
||||
# - name: Install Dependencies
|
||||
# run: pnpm i
|
||||
|
||||
# # for the time being, disable lint checking.
|
||||
# # - name: Lint Code
|
||||
# # run: pnpm lint
|
||||
|
||||
Reference in New Issue
Block a user