Repository navigation
feat(newsroom): version splash on every release, named in the rollout chart #329
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: | |
| pull_request: | |
| push: | |
| branches: [ "main" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 25 | |
| services: | |
| postgres: | |
| image: postgres:16 | |
| env: | |
| POSTGRES_USER: postgres | |
| POSTGRES_PASSWORD: postgres | |
| POSTGRES_DB: polymer_ci | |
| ports: | |
| - 5432:5432 | |
| options: >- | |
| --health-cmd="pg_isready -U postgres -d polymer_ci" | |
| --health-interval=10s | |
| --health-timeout=5s | |
| --health-retries=10 | |
| env: | |
| PAYLOAD_SECRET: ci-secret | |
| DATABASE_URL: postgres://postgres:postgres@127.0.0.1:5432/polymer_ci | |
| LEGACY_DATABASE_URI: postgres://postgres:postgres@127.0.0.1:5432/polymer_ci | |
| NEXT_PUBLIC_SITE_URL: https://poly.rpi.edu | |
| BASE_URL: http://127.0.0.1:3000 | |
| PLAYWRIGHT_WEB_SERVER_COMMAND: pnpm start | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| # Version comes from the "packageManager" field in package.json. Setting | |
| # it here as well makes action-setup fail with "Multiple versions of pnpm | |
| # specified" whenever the two differ. | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: pnpm | |
| - name: Install Dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Run Payload Migrations | |
| run: echo "y" | pnpm exec payload migrate | |
| - name: Lint | |
| run: pnpm lint | |
| - name: Typecheck | |
| run: pnpm typecheck | |
| - name: Build | |
| run: pnpm build |