Update package-lock.json after fresh install #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Code Quality & Coverage | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| # ============================================ | |
| # CODE COVERAGE | |
| # ============================================ | |
| coverage: | |
| name: Code Coverage | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./cloudsync-cli | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| cache-dependency-path: cloudsync-cli/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run tests with coverage | |
| run: npm test | |
| - name: Generate coverage report | |
| run: | | |
| npx nyc report --reporter=text-summary | |
| npx nyc report --reporter=lcov | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v3 | |
| with: | |
| files: ./cloudsync-cli/coverage/lcov.info | |
| fail_ci_if_error: false | |
| verbose: true | |
| # ============================================ | |
| # CODE QUALITY CHECKS | |
| # ============================================ | |
| code-quality: | |
| name: Code Quality | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./cloudsync-cli | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| cache-dependency-path: cloudsync-cli/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run ESLint | |
| run: npm run lint | |
| - name: Check formatting | |
| run: npx prettier --check "**/*.js" || true | |
| # ============================================ | |
| # DEPENDENCY ANALYSIS | |
| # ============================================ | |
| dependency-analysis: | |
| name: Dependency Analysis | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./cloudsync-cli | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: List dependencies | |
| run: npm ls --depth=0 | |
| - name: Check for outdated packages | |
| run: npx npm-check-updates --dry-run || true |