mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-10-03 02:04:31 +10:00
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
name: Cloudflare Compatibility
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [main]
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
env:
|
|
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
|
|
|
|
jobs:
|
|
worker:
|
|
runs-on: ${{ vars.USE_BLACKSMITH == 'true' && 'blacksmith-32vcpu-ubuntu-2404' || 'ubuntu-latest' }}
|
|
timeout-minutes: 20
|
|
services:
|
|
postgres:
|
|
image: postgres:17-alpine
|
|
env:
|
|
POSTGRES_PASSWORD: postgres
|
|
ports: [5432:5432]
|
|
options: >-
|
|
--health-cmd "pg_isready -U postgres"
|
|
--health-interval 5s --health-timeout 5s --health-retries 10
|
|
steps:
|
|
- if: ${{ vars.USE_BLACKSMITH != 'true' }}
|
|
uses: actions/checkout@v6
|
|
with:
|
|
persist-credentials: false
|
|
- if: ${{ vars.USE_BLACKSMITH == 'true' }}
|
|
uses: useblacksmith/checkout@v1
|
|
with:
|
|
persist-credentials: false
|
|
- uses: pnpm/action-setup@v6
|
|
- uses: actions/setup-node@v6
|
|
with:
|
|
node-version-file: .nvmrc
|
|
cache: pnpm
|
|
- run: pnpm install --frozen-lockfile
|
|
# No cloud account or deployment credentials: forks exercise the real local Workers runtime.
|
|
- run: pnpm check:cloudflare
|
|
- run: pnpm test:cloudflare
|