From 0ec230a507205d398671b49a5ad6e45665b74d03 Mon Sep 17 00:00:00 2001 From: Erik Burton Date: Mon, 25 Nov 2024 14:43:58 -0800 Subject: [PATCH] feat: combine core unit tests --- .../actions/setup-ci-core-tests/action.yml | 25 +------------------ .github/workflows/ci-core-partial.yml | 6 +---- 2 files changed, 2 insertions(+), 29 deletions(-) diff --git a/.github/actions/setup-ci-core-tests/action.yml b/.github/actions/setup-ci-core-tests/action.yml index c066c214042..1287d3a7f90 100644 --- a/.github/actions/setup-ci-core-tests/action.yml +++ b/.github/actions/setup-ci-core-tests/action.yml @@ -16,21 +16,9 @@ inputs: The expected database URL required: true - build-only: - description: | - Only setup the necessary dependencies for building the binary - default: "false" - runs: using: composite steps: - - name: Log Start - shell: bash - run: | - echo "====================================" - echo "Setting up CI Core Tests Environment" - echo "====================================" - - name: Setup NodeJS uses: ./.github/actions/setup-nodejs with: @@ -46,7 +34,7 @@ runs: - name: Replace chainlink-evm deps if: ${{ inputs.evm-ref-override != ''}} shell: bash - run: go get github.com/smartcontractkit/chainlink-integrations/evm/relayer@${{ inputs.evm-ref }} + run: go get github.com/smartcontractkit/chainlink-integrations/evm/relayer@${{ inputs.evm-ref-override }} - name: Setup Solana uses: ./.github/actions/setup-solana @@ -55,11 +43,9 @@ runs: uses: ./.github/actions/setup-wasmd - name: Setup Postgres - if: ${{ inputs.build-only == 'false' }} uses: ./.github/actions/setup-postgres - name: Touching core/web/assets/index.html - if: ${{ inputs.build-only == 'false' }} shell: bash run: mkdir -p core/web/assets && touch core/web/assets/index.html @@ -74,12 +60,10 @@ runs: run: go mod download - name: Build binary - if: ${{ inputs.build-only == 'false' }} shell: bash run: go build -o chainlink.test . - name: Setup DB - if: ${{ inputs.build-only == 'false' }} shell: bash run: ./chainlink.test local db preparetest env: @@ -100,10 +84,3 @@ runs: pushd $(go list -m -f "{{.Dir}}" github.com/smartcontractkit/chainlink-starknet/relayer) go install ./pkg/chainlink/cmd/chainlink-starknet popd - - - name: Log End - shell: bash - run: | - echo "=============================================" - echo "Finished Setting up CI Core Tests Environment" - echo "=============================================" diff --git a/.github/workflows/ci-core-partial.yml b/.github/workflows/ci-core-partial.yml index 6da97d5c50a..ee92d6407a6 100644 --- a/.github/workflows/ci-core-partial.yml +++ b/.github/workflows/ci-core-partial.yml @@ -22,11 +22,8 @@ jobs: matrix: type: - test-suite: "core" - tag-filter: "" - module-directory: "./" - - test-suite: "integration" - tag-filter: "integration" module-directory: "./" + build-flags: "-tags=integration" - test-suite: "ccip-deployment" tag-filter: "" module-directory: "./deployment" @@ -55,7 +52,6 @@ jobs: 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 }}