RC-0.0.8 #40
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 and Test | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Install pnpm | |
| run: | | |
| npm install -g pnpm | |
| pnpm --version | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Run type checking | |
| run: pnpm run type-check | |
| - name: Run linter | |
| run: pnpm run lint | |
| - name: Build application | |
| run: pnpm run build | |
| - name: Check if build was successful | |
| run: | | |
| if [ ! -d dist ]; then | |
| echo "❌ Build directory not found!" | |
| exit 1 | |
| fi | |
| echo "✅ Build successful" |