From 40a78c66bf0e3197e9a3b212ee710dbc50dd21e8 Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Tue, 24 Jan 2023 10:38:38 -0500 Subject: [PATCH 1/8] first pass use tests/sdk-tests/run-tests.sh in github action --- .github/workflows/docker-image.yml | 2 +- .github/workflows/test.yml | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 6336fbf4..c1172190 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -1,4 +1,4 @@ -name: Publish onn release +name: Publish on release on: release: types: [published] diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2b0188e5..87228087 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -81,6 +81,23 @@ jobs: make test-rpc if: env.GIT_DIFF + sdk_tests: + runs-on: ubuntu-latest + steps: + - name: Checkout laconic-sdk + uses: actions/checkout@v3 + with: + path: "./laconic-sdk/" + repository: cerc-io/laconic-sdk + fetch-depth: 0 + - name: build containers scripts + working-directory: ./tests/sdk-tests + run: ./build-laconicd-container.sh && build-sdk-test-container.sh + - name: run-tests.sh + working-directory: ./tests/sdk-tests + run: ./run-tests.sh + + # integration_tests: # runs-on: ubuntu-latest # steps: -- 2.45.2 From 08e369aa64c0d3e43158f5edcf69a2e9bcf1a54c Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Tue, 24 Jan 2023 11:56:53 -0500 Subject: [PATCH 2/8] - -> _ --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 87228087..0f180c74 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -91,10 +91,10 @@ jobs: repository: cerc-io/laconic-sdk fetch-depth: 0 - name: build containers scripts - working-directory: ./tests/sdk-tests + working-directory: tests/sdk_tests run: ./build-laconicd-container.sh && build-sdk-test-container.sh - name: run-tests.sh - working-directory: ./tests/sdk-tests + working-directory: tests/sdk_tests run: ./run-tests.sh -- 2.45.2 From 8f20f25e43c9cebf7fd77e1c80c18d331a49d0a0 Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Tue, 24 Jan 2023 12:17:25 -0500 Subject: [PATCH 3/8] diagnostic env step --- .github/workflows/test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0f180c74..2a9ccbf3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -90,6 +90,8 @@ jobs: path: "./laconic-sdk/" repository: cerc-io/laconic-sdk fetch-depth: 0 + - Environment: + run: ls -tlh && env - name: build containers scripts working-directory: tests/sdk_tests run: ./build-laconicd-container.sh && build-sdk-test-container.sh -- 2.45.2 From c73dc0d92a5c4cf702593ecf77f371590c053c70 Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Tue, 24 Jan 2023 12:24:34 -0500 Subject: [PATCH 4/8] diagnostic env step --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2a9ccbf3..06715299 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -90,8 +90,8 @@ jobs: path: "./laconic-sdk/" repository: cerc-io/laconic-sdk fetch-depth: 0 - - Environment: - run: ls -tlh && env + - name: Environment + run: cwd && ls -tlh && env - name: build containers scripts working-directory: tests/sdk_tests run: ./build-laconicd-container.sh && build-sdk-test-container.sh -- 2.45.2 From c0662cb5f11f6b383dcb5ae988d84ab4457bb5c9 Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Tue, 24 Jan 2023 12:32:54 -0500 Subject: [PATCH 5/8] diagnostic env step does not support cwd --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 06715299..ab4a48fb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -91,7 +91,7 @@ jobs: repository: cerc-io/laconic-sdk fetch-depth: 0 - name: Environment - run: cwd && ls -tlh && env + run: ls -tlh && env - name: build containers scripts working-directory: tests/sdk_tests run: ./build-laconicd-container.sh && build-sdk-test-container.sh -- 2.45.2 From 512136400d3637bb920a82475ed3cb9f849e2444 Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Tue, 24 Jan 2023 12:37:28 -0500 Subject: [PATCH 6/8] checkout not preserved between actions --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ab4a48fb..f1437ba1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -84,6 +84,7 @@ jobs: sdk_tests: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v3 - name: Checkout laconic-sdk uses: actions/checkout@v3 with: -- 2.45.2 From 90943bf1e6162060cb614a892a71cad05e0d52d7 Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Tue, 24 Jan 2023 13:27:11 -0500 Subject: [PATCH 7/8] ./ missing --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f1437ba1..8c53d45d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -95,7 +95,7 @@ jobs: run: ls -tlh && env - name: build containers scripts working-directory: tests/sdk_tests - run: ./build-laconicd-container.sh && build-sdk-test-container.sh + run: ./build-laconicd-container.sh && ./build-sdk-test-container.sh - name: run-tests.sh working-directory: tests/sdk_tests run: ./run-tests.sh -- 2.45.2 From 6c597101ea0bef9badaf8c1637f4c28d71bfe06f Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Tue, 24 Jan 2023 13:48:55 -0500 Subject: [PATCH 8/8] start built containers --- .github/workflows/test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8c53d45d..d2501e07 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -96,6 +96,9 @@ jobs: - name: build containers scripts working-directory: tests/sdk_tests run: ./build-laconicd-container.sh && ./build-sdk-test-container.sh + - name: start containers + working-directory: tests/sdk_tests + run: docker compose up -d - name: run-tests.sh working-directory: tests/sdk_tests run: ./run-tests.sh -- 2.45.2