setup-node's cache save fails on this runner -- the pnpm store path it computes does not exist at post-step time, which marks the job failed after the gate has already passed. Run 19 proved it: 0 lint issues, ui/dist matched, no task failure, then 'Path Validation Error' and exit 1.
62 lines
1.5 KiB
YAML
62 lines
1.5 KiB
YAML
name: Quality
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [main]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: quality-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: archie-quality
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Verify extension namespace support
|
|
run: |
|
|
if [ -e /proc/sys/kernel/apparmor_restrict_unprivileged_userns ]; then
|
|
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
|
|
fi
|
|
unshare --user --map-root-user --net true
|
|
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: go.mod
|
|
|
|
- uses: pnpm/action-setup@v4
|
|
with:
|
|
package_json_file: ui/package.json
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "24"
|
|
|
|
- name: Install quality tools
|
|
run: |
|
|
go install github.com/go-task/task/v3/cmd/task@v3.48.0
|
|
go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@$(cat .golangci-version)
|
|
go install mvdan.cc/gofumpt@v0.11.0
|
|
bash tools/proto.sh install
|
|
|
|
sudo apt-get update
|
|
sudo apt-get install -y --no-install-recommends ripgrep
|
|
|
|
- name: Ensure contract baseline ref
|
|
run: |
|
|
if ! git show-ref --verify --quiet refs/heads/main; then
|
|
git branch main origin/main
|
|
fi
|
|
|
|
- name: Run definitive gate
|
|
run: |
|
|
task --concurrency 1 check
|
|
git diff --exit-code
|