Added docs #28
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 Deploy to Railway | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - railway-version | |
| - access-review | |
| pull_request: | |
| branches: | |
| - main | |
| - access-review | |
| env: | |
| NODE_VERSION: '20.x' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Generate Prisma Client | |
| run: npm run db:generate | |
| - name: Build TypeScript | |
| run: npm run build | |
| - name: Run tests | |
| run: npm test | |
| continue-on-error: true | |
| # Railway deploys automatically via GitHub integration | |
| # No manual deploy step needed - just connect your repo in Railway dashboard |