feat: implement caching system with database and S3 support #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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - trunk | |
| pull_request: | |
| branches: | |
| - main | |
| - trunk | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - name: Set up Bun | |
| uses: oven-sh/setup-bun@v1 | |
| with: | |
| bun-version: 1.3.6 | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Validate version consistency | |
| run: | | |
| # Check if all package.json files have the same version | |
| ROOT_VERSION=$(cat package.json | grep '"version"' | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[[:space:]]') | |
| CLIENT_VERSION=$(cat client/package.json | grep '"version"' | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[[:space:]]') | |
| SERVER_VERSION="" | |
| if [ -f server/package.json ]; then | |
| SERVER_VERSION=$(cat server/package.json | grep '"version"' | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[[:space:]]') | |
| fi | |
| echo "Root version: $ROOT_VERSION" | |
| echo "Client version: $CLIENT_VERSION" | |
| echo "Server version: ${SERVER_VERSION:-N/A}" | |
| if [ "$ROOT_VERSION" != "$CLIENT_VERSION" ]; then | |
| echo "❌ Version mismatch: root ($ROOT_VERSION) != client ($CLIENT_VERSION)" | |
| exit 1 | |
| fi | |
| if [ -n "$SERVER_VERSION" ] && [ "$ROOT_VERSION" != "$SERVER_VERSION" ]; then | |
| echo "❌ Version mismatch: root ($ROOT_VERSION) != server ($SERVER_VERSION)" | |
| exit 1 | |
| fi | |
| echo "✅ Version consistency check passed" | |
| - name: Run typecheck | |
| run: bun run typecheck | |
| - name: Run format check | |
| run: bun run format:check | |
| - name: Run build | |
| run: bun run build |