From 99c3cdf2e03b211a771868a26fccd8aa391f096e Mon Sep 17 00:00:00 2001 From: Farhan Yahaya Date: Fri, 11 Sep 2026 16:50:25 +0000 Subject: [PATCH 1/4] feat: add lightning contract action --- .github/workflows/lightning-contract.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/lightning-contract.yaml diff --git a/.github/workflows/lightning-contract.yaml b/.github/workflows/lightning-contract.yaml new file mode 100644 index 000000000..d240a2896 --- /dev/null +++ b/.github/workflows/lightning-contract.yaml @@ -0,0 +1,21 @@ +name: Lightning contract tests +on: + pull_request: + types: [opened, synchronize, labeled] +jobs: + contract: + 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: + worker: ${{ github.workspace }} + lightning: main From 7e52a44700bd727a5175d2b2b399099898ee9749 Mon Sep 17 00:00:00 2001 From: Farhan Yahaya Date: Wed, 16 Sep 2026 08:26:27 +0000 Subject: [PATCH 2/4] feat: update naming --- .github/workflows/lightning-contract.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lightning-contract.yaml b/.github/workflows/lightning-contract.yaml index d240a2896..a67fabd7c 100644 --- a/.github/workflows/lightning-contract.yaml +++ b/.github/workflows/lightning-contract.yaml @@ -1,9 +1,10 @@ -name: Lightning contract tests +name: Integration Testing on: pull_request: types: [opened, synchronize, labeled] jobs: contract: + name: test build against lightning if: contains(github.event.pull_request.labels.*.name, 'run_contract_tests') runs-on: ubuntu-latest timeout-minutes: 45 From 3bb7f93e43230224a7a1dbb77de7180f4d69ce20 Mon Sep 17 00:00:00 2001 From: Farhan Yahaya Date: Wed, 16 Sep 2026 09:27:04 +0000 Subject: [PATCH 3/4] chore: update wording --- .../{lightning-contract.yaml => integration-testing.yaml} | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) rename .github/workflows/{lightning-contract.yaml => integration-testing.yaml} (76%) diff --git a/.github/workflows/lightning-contract.yaml b/.github/workflows/integration-testing.yaml similarity index 76% rename from .github/workflows/lightning-contract.yaml rename to .github/workflows/integration-testing.yaml index a67fabd7c..fa73886f8 100644 --- a/.github/workflows/lightning-contract.yaml +++ b/.github/workflows/integration-testing.yaml @@ -1,13 +1,15 @@ name: Integration Testing on: pull_request: - types: [opened, synchronize, labeled] + types: [opened, synchronize] jobs: contract: - name: test build against lightning - if: contains(github.event.pull_request.labels.*.name, 'run_contract_tests') + name: "Integration Testing (${{ matrix.target }})" runs-on: ubuntu-latest timeout-minutes: 45 + strategy: + matrix: + target: ["test build against Lightning"] services: postgres: image: postgres:17 From 3ff4a017cf352222d9a6290723ac7bc7cb5cd28b Mon Sep 17 00:00:00 2001 From: Farhan Yahaya Date: Wed, 16 Sep 2026 09:30:32 +0000 Subject: [PATCH 4/4] chore: update wording --- .github/workflows/integration-testing.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/integration-testing.yaml b/.github/workflows/integration-testing.yaml index fa73886f8..275f525f2 100644 --- a/.github/workflows/integration-testing.yaml +++ b/.github/workflows/integration-testing.yaml @@ -4,12 +4,9 @@ on: types: [opened, synchronize] jobs: contract: - name: "Integration Testing (${{ matrix.target }})" + name: test build against lightning runs-on: ubuntu-latest timeout-minutes: 45 - strategy: - matrix: - target: ["test build against Lightning"] services: postgres: image: postgres:17