docs: add Copilot coding-agent instructions #17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: workstation-polish-validation | ||
| on: | ||
| pull_request: | ||
| paths: | ||
| - 'profiles/linux-dev/workstation-v0/bin/check-workstation-polish.sh' | ||
| - 'profiles/linux-dev/workstation-v0/bin/check-mac-polish.sh' | ||
| - 'profiles/linux-dev/workstation-v0/bin/check-keyboard-policy.sh' | ||
| - '.github/workflows/workstation-polish-validation.yml' | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - 'profiles/linux-dev/workstation-v0/bin/check-workstation-polish.sh' | ||
| - 'profiles/linux-dev/workstation-v0/bin/check-mac-polish.sh' | ||
| - 'profiles/linux-dev/workstation-v0/bin/check-keyboard-policy.sh' | ||
| - '.github/workflows/workstation-polish-validation.yml' | ||
| jobs: | ||
| polish-validation-smoke: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| - name: Syntax check aggregate helper | ||
| run: | | ||
| set -euo pipefail | ||
| bash -n profiles/linux-dev/workstation-v0/bin/check-workstation-polish.sh | ||
| bash -n profiles/linux-dev/workstation-v0/bin/check-mac-polish.sh | ||
| bash -n profiles/linux-dev/workstation-v0/bin/check-keyboard-policy.sh | ||
| - name: Smoke: aggregate helper prefixes Mac and keyboard policy outputs | ||
| run: | | ||
| set -euo pipefail | ||
| helper='profiles/linux-dev/workstation-v0/bin/check-workstation-polish.sh' | ||
| tmp_home=$(mktemp -d) | ||
| stub_bin=$(mktemp -d) | ||
| mkdir -p "$tmp_home/Pictures/Screenshots" | ||
| cat > "$stub_bin/gnome-screenshot" <<'EOF' | ||
| #!/usr/bin/env bash | ||
| exit 0 | ||
| EOF | ||
| cat > "$stub_bin/sushi" <<'EOF' | ||
| #!/usr/bin/env bash | ||
| exit 0 | ||
| EOF | ||
| cat > "$stub_bin/mac-screenshot.sh" <<'EOF' | ||
| #!/usr/bin/env bash | ||
| exit 0 | ||
| EOF | ||
| cat > "$stub_bin/input-remapper-control" <<'EOF' | ||
| #!/usr/bin/env bash | ||
| exit 0 | ||
| EOF | ||
| chmod +x "$stub_bin/gnome-screenshot" "$stub_bin/sushi" "$stub_bin/mac-screenshot.sh" "$stub_bin/input-remapper-control" | ||
| out=$(HOME="$tmp_home" XDG_CONFIG_HOME="$tmp_home/.config" PATH="$stub_bin:$PATH" bash "$helper") | ||
| grep -F 'mac_polish.helper=present' <<<"$out" >/dev/null | ||
| grep -F 'mac_polish.screenshot_helper=present' <<<"$out" >/dev/null | ||
| grep -F 'mac_polish.screenshot_wrapper=present' <<<"$out" >/dev/null | ||
| grep -F 'mac_polish.sushi=present' <<<"$out" >/dev/null | ||
| grep -F 'keyboard_policy.helper=present' <<<"$out" >/dev/null | ||
| grep -F 'keyboard_policy.default_backend=input-remapper' <<<"$out" >/dev/null | ||
| grep -F 'keyboard_policy.primary_backend=input-remapper' <<<"$out" >/dev/null | ||
| grep -F 'keyboard_policy.selected_backend_available=present' <<<"$out" >/dev/null | ||
| grep -F 'keyboard_policy.policy_ok=yes' <<<"$out" >/dev/null | ||