fix(workflows): clean up node.yaml by removing unnecessary whitespace
Some checks failed
GBCI / build (push) Failing after 38s
Some checks failed
GBCI / build (push) Failing after 38s
This commit is contained in:
parent
b7c34446da
commit
f2bf5bc047
1 changed files with 11 additions and 33 deletions
|
@ -1,4 +1,5 @@
|
||||||
name: GBCI
|
name: GBCI
|
||||||
|
run: git config --global http.sslVerify false
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
|
@ -10,11 +11,7 @@ jobs:
|
||||||
runs-on: gbo
|
runs-on: gbo
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Disable SSL verification (temporary)
|
- uses: actions/checkout@v4
|
||||||
run: git config --global http.sslVerify false
|
|
||||||
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
|
@ -22,31 +19,12 @@ jobs:
|
||||||
node-version: '20'
|
node-version: '20'
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
|
|
||||||
- name: Copy files to deployment location
|
- name: Install dependencies
|
||||||
run: |
|
run: npm ci
|
||||||
sudo cp ./* /opt/gbo/bin/BotServer/
|
|
||||||
|
|
||||||
- name: Install production dependencies in deployment location
|
- name: Run tests
|
||||||
run: |
|
run: npm test
|
||||||
echo "[General Bots Deployer] Building BotServer..."
|
|
||||||
cd /opt/gbo/bin/BotServer
|
|
||||||
sudo npm ci --production
|
|
||||||
npm run build --if-present
|
|
||||||
|
|
||||||
cd /opt/gbo/bin/BotServer/default.gbui
|
- name: Build project
|
||||||
npm config set scripts-prepend-node-path true
|
run: npm run build --if-present
|
||||||
echo "[General Bots Deployer] Building default.gbui..."
|
|
||||||
npm install
|
|
||||||
npm run build
|
|
||||||
|
|
||||||
cd ../..
|
|
||||||
rm -rf deploy/default.gbui/node_modules
|
|
||||||
|
|
||||||
- name: Transpile TypeScript
|
|
||||||
run: |
|
|
||||||
|
|
||||||
/opt/gbo/bin/BotServer/node_modules/.bin/tsc -p .
|
|
||||||
|
|
||||||
- name: Reload and enable service
|
|
||||||
run: |
|
|
||||||
npm run start &
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue