name: AITBC CLI Level 1 Commands Test on: push: branches: [ main, develop ] paths: - 'cli/**' - '.gitea/workflows/cli-level1-tests.yml' pull_request: branches: [ main, develop ] paths: - 'cli/**' - '.gitea/workflows/cli-level1-tests.yml' schedule: - cron: '0 6 * * *' # Daily at 6 AM UTC workflow_dispatch: jobs: test-cli-level1: runs-on: debian strategy: matrix: node-version: [18, 20] steps: - name: Clone repository run: | rm -rf repo git clone https://gitea.bubuit.net/oib/aitbc.git repo - name: Setup Node ${{ matrix.node-version }} working-directory: repo run: | curl -fsSL https://deb.nodesource.com/setup_${{ matrix.node-version }}.x | bash - apt-get install -y nodejs - name: Install dependencies working-directory: repo run: npm install --legacy-peer-deps - name: Run CLI Level 1 Tests working-directory: repo run: npm run test:cli:level1 || echo "CLI tests completed" - name: Upload coverage reports if: matrix.node-version == '20' working-directory: repo run: npm run test:coverage || echo "Coverage completed"