mirror of
https://github.com/BigBodyCobain/Shadowbroker.git
synced 2026-12-05 09:03:39 +01:00
Bumps the actions group with 10 updates: | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `4.4.0` | `7.0.1` | | [actions/setup-node](https://github.com/actions/setup-node) | `4.4.0` | `7.1.0` | | [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) | `5.4.2` | `10.3.3` | | [actions/setup-python](https://github.com/actions/setup-python) | `5.6.0` | `7.1.0` | | [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) | `3.0.0` | `4.4.1` | | [docker/login-action](https://github.com/docker/login-action) | `3.0.0` | `4.8.0` | | [docker/metadata-action](https://github.com/docker/metadata-action) | `5.0.0` | `6.2.0` | | [docker/build-push-action](https://github.com/docker/build-push-action) | `5.0.0` | `7.4.0` | | [actions/upload-artifact](https://github.com/actions/upload-artifact) | `4.6.2` | `7.0.2` | | [actions/download-artifact](https://github.com/actions/download-artifact) | `4.3.0` | `8.0.2` | Updates `actions/checkout` from 4.4.0 to 7.0.1 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/11d5960a326750d5838078e36cf38b85af677262...3d3c42e5aac5ba805825da76410c181273ba90b1) Updates `actions/setup-node` from 4.4.0 to 7.1.0 - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/49933ea5288caeca8642d1e84afbd3f7d6820020...949feb2413d6458794dcd2491c4babbbce0c15c1) Updates `astral-sh/setup-uv` from 5.4.2 to 10.3.3 - [Release notes](https://github.com/astral-sh/setup-uv/releases) - [Commits](https://github.com/astral-sh/setup-uv/compare/d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86...68559e99cc807c1eb7e9238fd43a15bba460eec2) Updates `actions/setup-python` from 5.6.0 to 7.1.0 - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/a26af69be951a213d495a4c3e4e4022e16d87065...6d4fd22b20465ccc0f7354476588e8df7c9ca0e0) Updates `docker/setup-buildx-action` from 3.0.0 to 4.4.1 - [Release notes](https://github.com/docker/setup-buildx-action/releases) - [Commits](https://github.com/docker/setup-buildx-action/compare/f95db51fddba0c2d1ec667646a06c2ce06100226...f87e5991a6d7451dcb8d9637bfbc97413f497069) Updates `docker/login-action` from 3.0.0 to 4.8.0 - [Release notes](https://github.com/docker/login-action/releases) - [Commits](https://github.com/docker/login-action/compare/343f7c4344506bcbf9b4de18042ae17996df046d...8aa5831fb8d48d8f76594c7ddde61ae58019f550) Updates `docker/metadata-action` from 5.0.0 to 6.2.0 - [Release notes](https://github.com/docker/metadata-action/releases) - [Commits](https://github.com/docker/metadata-action/compare/96383f45573cb7f253c731d3b3ab81c87ef81934...dc802804100637a589fabce1cb79ff13a1411302) Updates `docker/build-push-action` from 5.0.0 to 7.4.0 - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](https://github.com/docker/build-push-action/compare/0565240e2d4ab88bba5387d719585280857ece09...c3c9e263c25d99ce0380d002d59b67737d91b0dc) Updates `actions/upload-artifact` from 4.6.2 to 7.0.2 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/ea165f8d65b6e75b540449e92b4886f43607fa02...cf430e030ddbb5b0abf93d22962f4752f3646cd9) Updates `actions/download-artifact` from 4.3.0 to 8.0.2 - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](https://github.com/actions/download-artifact/compare/d3f86a106a0bac45b974a628896c90dbdf5c8093...9000827ccba6bdab643e8b6fd33ac0654aef8333) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 7.0.1 dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: actions/setup-node dependency-version: 7.1.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: astral-sh/setup-uv dependency-version: 10.3.3 dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: actions/setup-python dependency-version: 7.1.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: docker/setup-buildx-action dependency-version: 4.4.1 dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: docker/login-action dependency-version: 4.8.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: docker/metadata-action dependency-version: 6.2.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: docker/build-push-action dependency-version: 7.4.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: actions/upload-artifact dependency-version: 7.0.2 dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: actions/download-artifact dependency-version: 8.0.2 dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions ... Signed-off-by: dependabot[bot] <support@github.com>
141 lines
6.3 KiB
YAML
141 lines
6.3 KiB
YAML
name: CI - Lint & Test
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
workflow_call:
|
|
|
|
# CI flake mitigation:
|
|
# ci.yml is triggered TWICE per PR on the same commit — once directly via
|
|
# the `pull_request` trigger above ("Frontend Tests & Build" check) and once
|
|
# via `workflow_call` from docker-publish.yml ("CI Gate / Frontend Tests &
|
|
# Build" check). Both jobs land on the same Actions runner pool at the same
|
|
# time and fight for CPU/RAM. Under contention, React's reconciliation in
|
|
# `messagesViewFirstContact.test.tsx > removes an approved contact …`
|
|
# overruns its 5s waitFor timeout — that's the single failure mode we've
|
|
# seen flake on PRs #226, #237, #261, #262, #265, #294, #303, and the
|
|
# fd7d6fa push. Backend tests and every other frontend test pass under
|
|
# the same conditions, which is what made this look random.
|
|
#
|
|
# Pinning a concurrency group on the SHA (PR head, or the pushed commit
|
|
# for main) serializes the two invocations so neither starves the other.
|
|
# We use cancel-in-progress: false so the second one queues instead of
|
|
# cancelling — cancelling could leave the PR check stuck "Expected" if
|
|
# only one of the two ever finishes. Total CI time grows by ~2 min in
|
|
# exchange for deterministic outcomes.
|
|
concurrency:
|
|
group: ci-${{ github.event.pull_request.head.sha || github.sha }}
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
frontend:
|
|
name: Frontend Tests & Build
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: frontend
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
|
with:
|
|
node-version: 24
|
|
cache: npm
|
|
cache-dependency-path: frontend/package-lock.json
|
|
- run: npm ci
|
|
- name: Check React runtime versions match
|
|
run: >-
|
|
node -e "const react = require('react/package.json').version;
|
|
const dom = require('react-dom/package.json').version;
|
|
if (react !== dom) throw new Error('React runtime mismatch: react=' + react + ', react-dom=' + dom);
|
|
console.log('React and React DOM match: ' + react);"
|
|
- name: Audit production dependencies
|
|
run: npm audit --omit=dev --audit-level=high
|
|
- name: Test development credential bootstrap
|
|
run: node --test scripts/dev-admin.test.cjs
|
|
- name: Run operator HTTP security regressions
|
|
run: npx vitest run --pool=threads src/__tests__/proxy src/__tests__/desktop/adminSessionBoundary.test.ts src/__tests__/voice
|
|
- run: npm run lint
|
|
- run: npm run format:check
|
|
- run: npx vitest run --reporter=verbose
|
|
- run: npm run build
|
|
- run: npm run bundle:report
|
|
|
|
backend:
|
|
name: Backend Lint & Test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
- name: Run secret scan
|
|
run: bash backend/scripts/scan-secrets.sh --all
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
|
|
with:
|
|
enable-cache: true
|
|
- name: Set up Python
|
|
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
with:
|
|
python-version: "3.11"
|
|
- name: Verify uv.lock matches pyproject.toml
|
|
# Docker and CI install with --frozen, which ignores pyproject.toml.
|
|
# A stale lock means dependency bumps never actually ship.
|
|
run: uv lock --check
|
|
- name: Install dependencies
|
|
run: cd backend && uv sync --frozen --group dev
|
|
- name: Audit Python dependencies
|
|
# Audit the locked pins without including pip-audit's own dependencies.
|
|
run: |
|
|
cd backend
|
|
uv export --locked --no-hashes --no-emit-project --no-emit-workspace -o "$RUNNER_TEMP/req.txt" > /dev/null
|
|
sed -E 's/ ;.*$//' "$RUNNER_TEMP/req.txt" | grep -vE '^\s*(#|$)' | sort -u > "$RUNNER_TEMP/req-audit.txt"
|
|
uvx --python 3.11 --with "filelock>=4.2.1" pip-audit -r "$RUNNER_TEMP/req-audit.txt" --no-deps --disable-pip --progress-spinner off
|
|
- run: cd backend && uv run ruff check .
|
|
- run: cd backend && uv run black --check .
|
|
- run: cd backend && uv run python -c "from services.fetchers.retry import with_retry; from services.env_check import validate_env; print('Module imports OK')"
|
|
- name: Run release smoke tests
|
|
run: |
|
|
cd backend
|
|
uv run pytest \
|
|
tests/test_operator_http_boundary.py \
|
|
tests/test_control_surface_auth.py \
|
|
tests/test_sentinel_routes_auth_gate.py \
|
|
tests/test_agent_shell_ws_auth.py \
|
|
tests/test_p0_security.py \
|
|
tests/test_voice_setup_api.py \
|
|
tests/test_voice_provider_catalog.py \
|
|
tests/test_agent_article_actions.py \
|
|
tests/test_mission_workspace.py \
|
|
tests/mesh/test_mesh_node_bootstrap_runtime.py \
|
|
tests/mesh/test_mesh_infonet_sync_support.py \
|
|
tests/mesh/test_mesh_canonical.py \
|
|
tests/mesh/test_mesh_merkle.py \
|
|
tests/test_release_helper.py \
|
|
tests/test_liveuamap_scraper_opt_in.py \
|
|
tests/test_liveuamap_parser.py \
|
|
tests/test_osm_tiles.py \
|
|
tests/test_liveuamap_provider.py \
|
|
tests/test_liveuamap_docker_contract.py \
|
|
tests/test_xquik_news.py \
|
|
tests/test_aprs_is_resource_safety.py \
|
|
tests/test_summary_endpoint.py \
|
|
tests/test_cyber_status_kev_dates.py \
|
|
tests/test_ais_upstream_health.py \
|
|
-v --tb=short
|
|
|
|
|
|
desktop-runtime-portability:
|
|
name: Windows Runtime Portability
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
|
with:
|
|
node-version: 24
|
|
- name: Verify portable desktop backend staging
|
|
run: node --test desktop-shell/tauri-skeleton/scripts/build-backend-runtime.test.cjs
|
|
- name: Verify native operator sessions and custody boundaries
|
|
env:
|
|
TAURI_CONFIG: '{"bundle":{"resources":[]}}'
|
|
run: cargo test --manifest-path desktop-shell/tauri-skeleton/src-tauri/Cargo.toml --bin shadowbroker-tauri-shell --quiet
|