From 0bf5709ee9a2bd7100a713e9278a8a6658e20351 Mon Sep 17 00:00:00 2001 From: Xenolphthalein <21215869+Xenolphthalein@users.noreply.github.com> Date: Mon, 16 Nov 2026 10:28:12 +0100 Subject: [PATCH] chore: CI checks the documents' links and private data, with one gate job, ci; the profile points at overpressure's releases --- .github/workflows/ci.yml | 48 ++++++++++++++++++++++++++++++++++++++++ profile/README.md | 2 +- 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..301c526 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,48 @@ +# Every pull request and push to main: the documents' links resolve, and nothing private is in them (the +# organization's profile and the default community files every repository without its own shows). The last +# job, ci, is the one check the ruleset requires. +name: CI +on: + push: + branches: [main] + pull_request: + +permissions: + contents: read + +jobs: + links: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: lycheeverse/lychee-action@e7477775783ea5526144ba13e8db5eec57747ce8 # v2.9.0 + with: + args: --no-progress --max-retries 3 "./**/*.md" + fail: true + env: + GITHUB_TOKEN: ${{ github.token }} + + private: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + fetch-depth: 0 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + repository: overpressure/overpressure + path: .overpressure + - name: Private data, in every commit + run: python3 .overpressure/scripts/check-private.py --repo . --history + + ci: + needs: [links, private] + if: always() + runs-on: ubuntu-latest + steps: + - name: Every job passed + env: + NEEDS: ${{ toJSON(needs) }} + run: | + bad=$(jq -r 'to_entries[] | select(.value.result != "success") | "\(.key): \(.value.result)"' <<< "$NEEDS") + [ -z "$bad" ] || { echo "::error::not passed: $bad"; exit 1; } diff --git a/profile/README.md b/profile/README.md index 5042cd2..e58c35e 100644 --- a/profile/README.md +++ b/profile/README.md @@ -7,7 +7,7 @@ | Repository | What it holds | | --- | --- | -| [overpressure](https://github.com/overpressure/overpressure) | The installer and the host tooling, which download each headset's release. Start here. | +| [overpressure](https://github.com/overpressure/overpressure) | The installer and the host tooling, which download each headset's release. Start here: [its releases](https://github.com/overpressure/overpressure/releases) (a beta, marked *Pre-release*, while there is no stable release). | | [phoenix](https://github.com/overpressure/phoenix) | The PICO 4: its images, tooling and releases, one headset module. | | [packages](https://github.com/overpressure/packages) | The Arch packages of the headsets' system, in layers, and each headset's image definition. | | [linux](https://github.com/overpressure/linux) | Valve's Steam Frame kernel with the project's changes, one branch per layer and headset. |