Files
Netcatty/.github/workflows/qa-official-linux.yml
T

88 lines
4.0 KiB
YAML

name: QA official Linux candidate (incremental probe)
on:
pull_request:
branches: [main]
types: [opened, synchronize, reopened]
paths:
- .github/workflows/qa-official-linux.yml
- scripts/qa-official-linux/**
permissions:
contents: read
actions: read
concurrency:
group: qa-official-linux-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
official-package-probe:
if: >-
github.repository == 'binaricat/Netcatty' &&
github.event.pull_request.head.repo.full_name == 'binaricat/Netcatty' &&
github.event.pull_request.head.ref == 'qa/official-linux-a23868e' &&
github.event.pull_request.draft == true
strategy:
fail-fast: false
matrix:
include:
- candidate: a23868e
config: candidate.json
- candidate: 9d4e90b
config: candidate-9d4e90b.json
runs-on: ubuntu-22.04
timeout-minutes: 12
env:
QA_ROOT: /tmp/netcatty-official-qa-${{ matrix.candidate }}
QA_CANDIDATE: ${{ matrix.config }}
steps:
- name: Checkout QA harness without persisted credentials
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
- name: Node for QA harness only
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '24.11.1'
- name: Stock desktop runtime dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -y --no-install-recommends xvfb libgtk-3-0 libnss3 libasound2 libgbm1 libatk-bridge2.0-0 libxss1 libsecret-1-0
- name: Install isolated QA dependencies without lifecycle scripts
run: npm ci --prefix scripts/qa-official-linux --ignore-scripts --no-audit --no-fund
- name: Verify official run, artifact ZIP and deb; extract without installer scripts
id: provenance
env:
GH_TOKEN: ${{ github.token }}
run: node scripts/qa-official-linux/provenance.cjs
- name: Persistence through real official Electron restart
id: persistence
if: success()
run: xvfb-run -a -s '-screen 0 1440x1000x24 -nolisten tcp' node scripts/qa-official-linux/desktop.cjs persistence
- name: Real SSH disconnect and original-tab reconnect
id: ssh
if: always() && steps.provenance.outcome == 'success'
run: xvfb-run -a -s '-screen 0 1440x1000x24 -nolisten tcp' node scripts/qa-official-linux/desktop.cjs ssh
- name: Independent real SFTP pause, stable bytes, resume and SHA-256
id: sftp
if: always() && steps.provenance.outcome == 'success'
run: xvfb-run -a -s '-screen 0 1440x1000x24 -nolisten tcp' node scripts/qa-official-linux/desktop.cjs sftp
- name: Independent new host filter compatibility and boundary checks
if: always() && steps.provenance.outcome == 'success' && matrix.candidate == '9d4e90b'
run: xvfb-run -a -s '-screen 0 1440x1000x24 -nolisten tcp' node scripts/qa-official-linux/desktop.cjs host-filter
- name: Record explicit scope
if: always()
run: |
echo 'Candidate ${{ matrix.candidate }}; exact official SHA/run/artifact/digests are recorded in provenance.json' >> "$GITHUB_STEP_SUMMARY"
echo 'Read independent persistence, ssh and sftp assertions.json reports and real screenshots; a failure in one scenario does not skip the others. Stock sandbox launch failures are failures, never feature passes. This is extracted-package execution, not system-install acceptance.' >> "$GITHUB_STEP_SUMMARY"
- name: Upload reviewed QA evidence (3 days)
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: official-linux-${{ matrix.candidate }}-qa-${{ github.run_id }}
path: /tmp/netcatty-official-qa-${{ matrix.candidate }}/evidence/
retention-days: 3
if-no-files-found: warn