Enhance build verification for db directories #6
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: Build On Mac | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Build | |
| run: npm run build | |
| - name: Verify build output | |
| run: | | |
| if [ ! -d "dist/api/v1/core/src/db" ]; then | |
| echo "❌ Error: Directory dist/api/v1/core/src/db does not exist!" | |
| exit 1 | |
| elif [ -z "$(ls -A dist/api/v1/core/src/db 2>/dev/null)" ]; then | |
| echo "❌ Error: No files found in dist/api/v1/core/src/db!" | |
| exit 1 | |
| else | |
| echo "✅ Success: Files found in dist/api/v1/core/src/db" | |
| fi |