name: Quality on: pull_request: push: branches: [main] permissions: contents: read concurrency: group: quality-${{ github.ref }} cancel-in-progress: true jobs: check: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - uses: actions/setup-go@v5 with: go-version-file: go.mod - uses: actions/setup-node@v4 with: node-version: "24" cache: npm cache-dependency-path: ui/package-lock.json - 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@v2.13.2 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 sudo install -d /usr/share/postgresql-common/pgdg sudo curl --fail --silent --show-error --location \ https://www.postgresql.org/media/keys/ACCC4CF8.asc \ --output /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc . /etc/os-release echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt ${VERSION_CODENAME}-pgdg main" \ | sudo tee /etc/apt/sources.list.d/pgdg.list sudo apt-get update sudo apt-get install -y --no-install-recommends postgresql-client-18 echo "/usr/lib/postgresql/18/bin" >> $GITHUB_PATH pg_dump --version pg_restore --version - 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 check git diff --exit-code