From d2f3d2d2d728838614d247e7cdd9dad99dc1ce30 Mon Sep 17 00:00:00 2001 From: Jesse de Wit Date: Sat, 12 Aug 2023 21:23:16 +0200 Subject: [PATCH] run unit tests in CI --- .github/workflows/integration_tests.yaml | 11 +++++++++++ itest/lspd_test.go | 4 ++++ 2 files changed, 15 insertions(+) diff --git a/.github/workflows/integration_tests.yaml b/.github/workflows/integration_tests.yaml index b5c0dada..bee59acb 100644 --- a/.github/workflows/integration_tests.yaml +++ b/.github/workflows/integration_tests.yaml @@ -158,3 +158,14 @@ jobs: CLIENT_REF: ${{ env.CLIENT_REF }} GO_VERSION: ${{ env.GO_VERSION }} CLN_VERSION: ${{ env.CLN_VERSION }} + + run-unit-tests: + runs-on: ubuntu-22.04 + name: Run unit tests + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Test + run: go test -short ./... + diff --git a/itest/lspd_test.go b/itest/lspd_test.go index 820a9717..03c66525 100644 --- a/itest/lspd_test.go +++ b/itest/lspd_test.go @@ -13,6 +13,10 @@ import ( var defaultTimeout time.Duration = time.Second * 120 func TestLspd(t *testing.T) { + if testing.Short() { + t.Skip() + return + } testCases := allTestCases runTests(t, testCases, "LND-lspd", lndLspFunc, lndClientFunc) runTests(t, testCases, "CLN-lspd", clnLspFunc, clnClientFunc)