Sandbox/fix moderation commands #142
Workflow file for this run
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: Migration Version Check | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| - mitchwork | |
| jobs: | |
| migration-check: | |
| runs-on: ubuntu-latest | |
| services: | |
| postgres: | |
| image: postgres:16 | |
| env: | |
| POSTGRES_USER: titanbot | |
| POSTGRES_PASSWORD: titanbot | |
| POSTGRES_DB: titanbot | |
| ports: | |
| - 5432:5432 | |
| options: >- | |
| --health-cmd "pg_isready -U titanbot -d titanbot" | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| env: | |
| POSTGRES_URL: postgresql://titanbot:titanbot@localhost:5432/titanbot | |
| POSTGRES_HOST: localhost | |
| POSTGRES_PORT: 5432 | |
| POSTGRES_DB: titanbot | |
| POSTGRES_USER: titanbot | |
| POSTGRES_PASSWORD: titanbot | |
| POSTGRES_SSL: "false" | |
| SCHEMA_VERSION: "1" | |
| SCHEMA_VERSION_LABEL: "baseline-v1" | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Apply migrations | |
| run: npm run migrate | |
| - name: Validate migration version | |
| run: npm run migrate:check |