caelum0x 2b68bde5d5 Predikt: full Polymarket-style prediction market — web + mobile + on-chain + bots
Working tree is now the canonical repo. Off-chain play-money + trustless on-chain
(FPMM AMM + CLOB via UMA settlement), AI market factory, creator/social/distribution,
mobile shell + push, one-command demo + deploy-kit. Secrets excluded (see ENV-AND-KEYS.md).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-06 23:29:50 +03:00

73 lines
1.8 KiB
YAML

name: Check PRs
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
FORCE_COLOR: 3
NEXT_TELEMETRY_DISABLED: 1
jobs:
check:
name: Typecheck, Lint, Format & Test
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Install Node 20
uses: actions/setup-node@v6
with:
node-version: 20
cache: 'yarn'
cache-dependency-path: 'yarn.lock'
- name: Cache node_modules
uses: actions/cache@v5
with:
path: |
node_modules
common/node_modules
web/node_modules
backend/api/node_modules
backend/discord-bot/node_modules
backend/scheduler/node_modules
backend/scripts/node_modules
backend/shared/node_modules
client-common/node_modules
key: ${{ runner.os }}-node20-yarn1-modules-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-node20-yarn1-modules-
- name: Install dependencies
# https://github.com/actions/setup-node/issues/1137#issuecomment-2508963254
run: mkdir -p "$(yarn cache dir)" && yarn install --prefer-offline --frozen-lockfile --check-files
- name: Build common/shared
if: ${{ !cancelled() }}
run: yarn build:ci
- name: Typecheck
if: ${{ !cancelled() }}
run: yarn typecheck
- name: Lint
if: ${{ !cancelled() }}
run: yarn lint
- name: Check formatting
if: ${{ !cancelled() }}
run: yarn format:check
- name: Test
if: ${{ !cancelled() }}
run: yarn test