From 30d90bae6edfecf982cf75455b5dfe1e83e65b3c Mon Sep 17 00:00:00 2001 From: Farhan Yahaya Date: Wed, 16 Sep 2026 08:51:31 +0000 Subject: [PATCH 1/4] ci: kit contract tests --- .github/workflows/kit-contract.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/kit-contract.yml diff --git a/.github/workflows/kit-contract.yml b/.github/workflows/kit-contract.yml new file mode 100644 index 00000000000..45469ad2d66 --- /dev/null +++ b/.github/workflows/kit-contract.yml @@ -0,0 +1,22 @@ +name: Integration Testing +on: + pull_request: + types: [opened, synchronize, labeled] +jobs: + contract: + name: test build against kit + if: contains(github.event.pull_request.labels.*.name, 'run_contract_tests') + runs-on: ubuntu-latest + timeout-minutes: 45 + services: + postgres: + image: postgres:17 + env: { POSTGRES_USER: postgres, POSTGRES_PASSWORD: postgres } + ports: ["5432:5432"] + options: --health-cmd "pg_isready -U postgres" --health-interval 5s --health-retries 20 + steps: + - uses: actions/checkout@v6 + - uses: OpenFn/kit-lightning-integration@v1 + with: + lightning: ${{ github.workspace }} + worker: latest From cbc7a8885b3843c29d90bc6f5b638d1a96fc08e7 Mon Sep 17 00:00:00 2001 From: Farhan Yahaya Date: Wed, 16 Sep 2026 09:33:37 +0000 Subject: [PATCH 2/4] feat: remove label dependency --- .github/workflows/kit-contract.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/kit-contract.yml b/.github/workflows/kit-contract.yml index 45469ad2d66..3b40bcf30f4 100644 --- a/.github/workflows/kit-contract.yml +++ b/.github/workflows/kit-contract.yml @@ -1,11 +1,10 @@ name: Integration Testing on: pull_request: - types: [opened, synchronize, labeled] + types: [opened, synchronize] jobs: contract: name: test build against kit - if: contains(github.event.pull_request.labels.*.name, 'run_contract_tests') runs-on: ubuntu-latest timeout-minutes: 45 services: From 50a14a035264b13a2d22d1afdd22096422fabb5a Mon Sep 17 00:00:00 2001 From: Farhan Yahaya Date: Wed, 16 Sep 2026 09:38:44 +0000 Subject: [PATCH 3/4] feat: update filename --- .github/workflows/{kit-contract.yml => integration-testing.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{kit-contract.yml => integration-testing.yml} (100%) diff --git a/.github/workflows/kit-contract.yml b/.github/workflows/integration-testing.yml similarity index 100% rename from .github/workflows/kit-contract.yml rename to .github/workflows/integration-testing.yml From c8beeb9e0ca0613cc58a8346c250f7d3ddf0ac1e Mon Sep 17 00:00:00 2001 From: Farhan Yahaya Date: Thu, 17 Sep 2026 09:30:40 +0000 Subject: [PATCH 4/4] feat: don't run on draft prs --- .github/workflows/integration-testing.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration-testing.yml b/.github/workflows/integration-testing.yml index 3b40bcf30f4..a2d09bcc8d0 100644 --- a/.github/workflows/integration-testing.yml +++ b/.github/workflows/integration-testing.yml @@ -1,10 +1,11 @@ name: Integration Testing on: pull_request: - types: [opened, synchronize] + types: [opened, synchronize, ready_for_review] jobs: contract: name: test build against kit + if: github.event.pull_request.draft == false runs-on: ubuntu-latest timeout-minutes: 45 services: