Bump qs and express #32
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: Test Build | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| branches: [main, master] | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Type check | |
| run: npm run typecheck | |
| - name: Build site | |
| run: npm run build | |
| - name: Check build output | |
| run: | | |
| if [ ! -d "build" ]; then | |
| echo "Build directory not found!" | |
| exit 1 | |
| fi | |
| if [ ! -f "build/index.html" ]; then | |
| echo "index.html not found in build output!" | |
| exit 1 | |
| fi | |
| echo "Build completed successfully!" | |
| ls -la build/ |