name: checks on: push: branches: ["**"] pull_request: jobs: pytest: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: "3.11" - name: Install dev requirements run: python -m pip install --disable-pip-version-check -r requirements-dev.txt - name: Source-only selfcheck (no credentials, no imports) run: python scripts/selfcheck.py --source-only - name: Root pytest suite (loopback/fakes only, no real endpoints) run: python -m pytest -q env: # Purchases are config-gated (empty commerce_offers + empty payment token), # not flag-gated: there is no IISHKO_WALLET_ENABLED / PAID_OFFERS switch. IISHKO_ADMIN_IDS: "" IISHKO_NOTIFICATIONS_ENABLED: "0" IISHKO_SANDBOX_ENABLED: "0" moderation: runs-on: ubuntu-latest defaults: run: working-directory: moderation steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: go-version-file: moderation/go.mod - name: Go moderation contracts and static analysis run: | go test ./... go vet ./... - name: Linux static binary run: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -trimpath -o ../iishko-moderation . node: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: "22" - name: Node tests (no real endpoints) shell: bash run: | shopt -s nullglob files=(tests/*.mjs) if [ ${#files[@]} -eq 0 ]; then echo "no Node tests present yet" else node --test "${files[@]}" fi