CI for catbee-technologies/catbee-docs on 16/merge #245
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: CI | |
| run-name: CI for ${{ github.repository }} on ${{ github.ref_name }} | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| types: | |
| - opened | |
| - synchronize | |
| - reopened | |
| - edited | |
| branches: | |
| - '**' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: Build, Lint, Type Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: "npm" | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run linting | |
| run: npm run lint | |
| - name: Build application | |
| run: npm run build | |
| - name: TypeScript type check | |
| run: npx tsc --noEmit | |
| - name: Check outdated dependencies | |
| run: | | |
| echo "Checking for outdated dependencies..." | |
| OUTDATED=$(npm outdated --json || true) | |
| if [ -n "$OUTDATED" ] && [ "$OUTDATED" != "{}" ]; then | |
| echo "Outdated dependencies detected:" | |
| echo "$OUTDATED" | |
| else | |
| echo "All dependencies are up to date." | |
| fi |