diff --git a/.gitea/workflows/audit.yml b/.gitea/workflows/audit.yml index 8434aff7..8747263c 100644 --- a/.gitea/workflows/audit.yml +++ b/.gitea/workflows/audit.yml @@ -15,11 +15,9 @@ jobs: git clone https://gitea.bubuit.net/oib/aitbc.git repo - name: Install dependencies - run: | - cd repo - npm install + working-directory: repo + run: npm install - name: Audit dependencies - run: | - cd repo - npm audit || true + working-directory: repo + run: npm audit || true diff --git a/.gitea/workflows/ci-cd.yml b/.gitea/workflows/ci-cd.yml index 6893f901..6bd44681 100644 --- a/.gitea/workflows/ci-cd.yml +++ b/.gitea/workflows/ci-cd.yml @@ -16,25 +16,22 @@ jobs: git clone https://gitea.bubuit.net/oib/aitbc.git repo - name: Setup Node.js + working-directory: repo run: | - cd repo curl -fsSL https://deb.nodesource.com/setup_20.x | bash - apt-get install -y nodejs - name: Install dependencies - run: | - cd repo - npm install --legacy-peer-deps + working-directory: repo + run: npm install --legacy-peer-deps - name: Run tests - run: | - cd repo - npm test || echo "Tests completed" + working-directory: repo + run: npm test || echo "Tests completed" - name: Build - run: | - cd repo - npm run build || echo "Build completed" + working-directory: repo + run: npm run build || echo "Build completed" deploy: needs: build @@ -48,7 +45,7 @@ jobs: git clone https://gitea.bubuit.net/oib/aitbc.git repo - name: Deploy + working-directory: repo run: | - cd repo echo "Deploy step would run here" # Add deployment commands here diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index b4e7a76e..f56fce0c 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -15,19 +15,17 @@ jobs: git clone https://gitea.bubuit.net/oib/aitbc.git repo - name: Enter repo + debug + working-directory: repo run: | - cd repo echo "PWD:" pwd echo "FILES:" ls -la - name: Install dependencies - run: | - cd repo - npm install --legacy-peer-deps + working-directory: repo + run: npm install --legacy-peer-deps - name: Build - run: | - cd repo - npm run build || echo "no build" + working-directory: repo + run: npm run build || echo "no build" diff --git a/.gitea/workflows/cli-level1-tests.yml b/.gitea/workflows/cli-level1-tests.yml index 0b2c6dbe..74e414cb 100644 --- a/.gitea/workflows/cli-level1-tests.yml +++ b/.gitea/workflows/cli-level1-tests.yml @@ -30,23 +30,20 @@ jobs: git clone https://gitea.bubuit.net/oib/aitbc.git repo - name: Setup Node ${{ matrix.node-version }} + working-directory: repo run: | - cd repo curl -fsSL https://deb.nodesource.com/setup_${{ matrix.node-version }}.x | bash - apt-get install -y nodejs - name: Install dependencies - run: | - cd repo - npm install --legacy-peer-deps + working-directory: repo + run: npm install --legacy-peer-deps - name: Run CLI Level 1 Tests - run: | - cd repo - npm run test:cli:level1 || echo "CLI tests completed" + working-directory: repo + run: npm run test:cli:level1 || echo "CLI tests completed" - name: Upload coverage reports if: matrix.node-version == '20' - run: | - cd repo - npm run test:coverage || echo "Coverage completed" + working-directory: repo + run: npm run test:coverage || echo "Coverage completed" diff --git a/.gitea/workflows/fix.yml b/.gitea/workflows/fix.yml index 3ed3358b..d78beac9 100644 --- a/.gitea/workflows/fix.yml +++ b/.gitea/workflows/fix.yml @@ -15,11 +15,9 @@ jobs: git clone https://gitea.bubuit.net/oib/aitbc.git repo - name: Install dependencies - run: | - cd repo - npm install + working-directory: repo + run: npm install - name: Auto fix vulnerabilities - run: | - cd repo - npm audit fix || true + working-directory: repo + run: npm audit fix || true diff --git a/.gitea/workflows/security-scanning.yml b/.gitea/workflows/security-scanning.yml index 99c78281..69d6c911 100644 --- a/.gitea/workflows/security-scanning.yml +++ b/.gitea/workflows/security-scanning.yml @@ -15,24 +15,21 @@ jobs: git clone https://gitea.bubuit.net/oib/aitbc.git repo - name: Verify repository context + working-directory: repo run: | - cd repo echo "PWD:" pwd echo "FILES:" ls -la - name: Install dependencies - run: | - cd repo - npm install + working-directory: repo + run: npm install - name: Audit dependencies - run: | - cd repo - npm audit || true + working-directory: repo + run: npm audit || true - name: Security scan - run: | - cd repo - npm audit --audit-level moderate || true + working-directory: repo + run: npm audit --audit-level moderate || true diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 2f1c8bd5..b07993d8 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -15,8 +15,8 @@ jobs: git clone https://gitea.bubuit.net/oib/aitbc.git repo - name: Verify repository context + working-directory: repo run: | - cd repo echo "Current working directory:" pwd echo "Files in directory:" @@ -25,13 +25,12 @@ jobs: ls -la package.json || echo "package.json not found" - name: Install dependencies - run: | - cd repo - npm install --legacy-peer-deps + working-directory: repo + run: npm install --legacy-peer-deps - name: Test runner + working-directory: repo run: | - cd repo echo "Runner OK" hostname whoami