From 622a9dffd769b7fd0d71986fd88f0889c48d6c05 Mon Sep 17 00:00:00 2001 From: Erik Burton Date: Mon, 25 Nov 2024 12:15:36 -0800 Subject: [PATCH] separate action to different steps --- .github/workflows/ci-core-partial.yml | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-core-partial.yml b/.github/workflows/ci-core-partial.yml index 8364cc6c25d..6da97d5c50a 100644 --- a/.github/workflows/ci-core-partial.yml +++ b/.github/workflows/ci-core-partial.yml @@ -49,19 +49,39 @@ jobs: test-suite: ${{ matrix.type.cmd }} db-url: ${{ env.DB_URL }} + - name: Build Tests + uses: smartcontractkit/.github/apps/go-test-caching@feat/go-test-binary-comparison + with: + pipeline-step: "build" + test-suite: ${{ matrix.type.test-suite }} + module-directory: ${{ matrix.type.module-directory }} + tag-filter: ${{ matrix.type.tag-filter }} + build-concurrency: "32" + github-token: ${{ secrets.GITHUB_TOKEN }} + - name: Run Tests uses: smartcontractkit/.github/apps/go-test-caching@feat/go-test-binary-comparison env: CL_DATABASE_URL: ${{ env.DB_URL }} with: + pipeline-step: "run" + test-suite: ${{ matrix.type.test-suite }} + module-directory: ${{ matrix.type.module-directory }} + tag-filter: ${{ matrix.type.tag-filter }} + github-token: ${{ secrets.GITHUB_TOKEN }} + run-all-tests: "true" + run-concurrency: "32" + + - name: Update Test Index + uses: smartcontractkit/.github/apps/go-test-caching@feat/go-test-binary-comparison + with: + pipeline-step: "update" test-suite: ${{ matrix.type.test-suite }} module-directory: ${{ matrix.type.module-directory }} tag-filter: ${{ matrix.type.tag-filter }} - update-index: "true" - force-update-index: "true" - build-concurrency: "32" run-concurrency: "32" github-token: ${{ secrets.GITHUB_TOKEN }} + - name: Print postgres logs if: ${{ always() }}