From f2bf5bc0478b872fd5a4b353ab73b24412e2f9fd Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Wed, 26 Mar 2025 21:29:00 -0300 Subject: [PATCH] fix(workflows): clean up node.yaml by removing unnecessary whitespace --- .forgejo/workflows/node.yaml | 44 +++++++++--------------------------- 1 file changed, 11 insertions(+), 33 deletions(-) diff --git a/.forgejo/workflows/node.yaml b/.forgejo/workflows/node.yaml index e00b8690..439345ab 100644 --- a/.forgejo/workflows/node.yaml +++ b/.forgejo/workflows/node.yaml @@ -1,4 +1,5 @@ name: GBCI +run: git config --global http.sslVerify false on: push: branches: [ "main" ] @@ -10,43 +11,20 @@ jobs: runs-on: gbo steps: - - name: Disable SSL verification (temporary) - run: git config --global http.sslVerify false - - - name: Checkout code - uses: actions/checkout@v4 + - uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: '20' cache: 'npm' - - - name: Copy files to deployment location - run: | - sudo cp ./* /opt/gbo/bin/BotServer/ - - - name: Install production dependencies in deployment location - run: | - 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 - npm config set scripts-prepend-node-path true - 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 & + - name: Install dependencies + run: npm ci + + - name: Run tests + run: npm test + + - name: Build project + run: npm run build --if-present + \ No newline at end of file