From 876a7c0d34ddd10944c6f272b9f7ec38cd2f6988 Mon Sep 17 00:00:00 2001 From: Andrew Jackson Date: Fri, 30 Oct 2026 11:34:17 -0500 Subject: [PATCH] chore: use shared github actions --- .github/workflows/test.yml | 58 ++------------------------------------ 1 file changed, 2 insertions(+), 56 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b35643d..b623a27 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,27 +10,8 @@ on: - main jobs: - test: - runs-on: ubuntu-latest - strategy: - matrix: - pg-version: [ '14', '15', '16', '17', '18', '19'] - - steps: - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - - uses: cachix/install-nix-action@8aa03977d8d733052d78f4e008a241fd1dbf36b3 # v31.10.6 - with: - nix_path: nixpkgs=channel:nixos-unstable - - - name: Use Cachix Cache - uses: cachix/cachix-action@3ba601ff5bbb07c7220846facfa2cd81eeee15a1 # v16 - with: - name: nxpg - authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} - - - name: Run tests - run: nix-shell --argstr pgVersion "${{ matrix.pg-version }}" --arg cassert false --run "xpg -v ${{ matrix.pg-version }} test" + common-extension-workflows: + uses: supabase/xpg/.github/workflows/reusable_extension_ci.yml@27aedcb0a23bce2879e7b114369e9c937665082d # v2.7.0 style: @@ -53,41 +34,6 @@ jobs: - name: Run style check run: nix-shell --run "vault-style-check" - test-on-macos: - runs-on: macos-26 - - strategy: - matrix: - pg-version: ['17', '18', '19'] - - steps: - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - - name: install nix - uses: cachix/install-nix-action@96951a368ba55167b55f1c916f7d416bac6505fe # v31.10.3 - with: - nix_path: nixpkgs=channel:nixos-unstable - - - name: use cachix cache - uses: cachix/cachix-action@3ba601ff5bbb07c7220846facfa2cd81eeee15a1 # v16 - with: - name: nxpg - authtoken: ${{ secrets.cachix_auth_token }} - - - name: clang analyze - run: | - nix-shell --run "CPPFLAGS='--analyze -Xanalyzer -analyzer-werror' xpg --cassert -v ${{ matrix.pg-version }} build" - rm -rf ./build-${{ matrix.pg-version }} - - - name: build - run: nix-shell --run "xpg --cassert -v ${{ matrix.pg-version }} build" - - - name: run tests - run: nix-shell --run "xpg --cassert -v ${{ matrix.pg-version }} test" - - - if: ${{ failure() }} - run: cat regression.diffs - validate-sql-snapshot: runs-on: macos-15 steps: