-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an input base path to the setup actions
- Loading branch information
Showing
5 changed files
with
32 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
name: Setup Postgresql | ||
description: Setup postgres docker container via docker-compose, allowing usage of a custom command, see https://github.com/orgs/community/discussions/26688 | ||
inputs: | ||
base-path: | ||
description: Path to the base of the repo | ||
required: false | ||
default: . | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Start postgres service | ||
run: docker compose up -d | ||
shell: bash | ||
working-directory: ./.github/actions/setup-postgres | ||
working-directory: ${{ inputs.base-path }}/.github/actions/setup-postgres | ||
- name: Wait for postgres service to be healthy | ||
run: ./wait-for-healthy-postgres.sh | ||
shell: bash | ||
working-directory: ./.github/actions/setup-postgres | ||
working-directory: ${{ inputs.base-path }}/.github/actions/setup-postgres |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,30 +114,10 @@ jobs: | |
- name: Setup Go | ||
if: ${{ needs.filter.outputs.changes == 'true' }} | ||
uses: ./.github/actions/setup-go | ||
|
||
- name: Setup Github Token | ||
id: get-gh-token | ||
uses: smartcontractkit/.github/actions/setup-github-token@ef78fa97bf3c77de6563db1175422703e9e6674f # [email protected] | ||
with: | ||
aws-role-arn: ${{ secrets.AWS_OIDC_GLOBAL_READ_ONLY_TOKEN_ISSUER_ROLE_ARN }} | ||
aws-lambda-url: ${{ secrets.AWS_INFRA_RELENG_TOKEN_ISSUER_LAMBDA_URL }} | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
set-git-config: "true" | ||
- name: Replace the chainlink-integration deps | ||
- name: Replace chainlink-evm deps | ||
if: ${{ needs.filter.outputs.changes == 'true' && inputs.evm-ref != ''}} | ||
shell: bash | ||
env: | ||
MODULE: github.com/smartcontractkit/chainlink-integrations/evm/relayer | ||
COMMIT_HASH: ${{ inputs.evm-ref }} | ||
run: | | ||
# Update to the evm/relayer code we wish to test against | ||
go env -w GOPRIVATE=github.com/smartcontractkit/chainlink-integrations | ||
go get ${MODULE}@${COMMIT_HASH} | ||
# push replace into core go.mod, remove this once the evm migration is complete | ||
PSEUDO_VERSION=$(go list -m -mod=mod ${MODULE}@${COMMIT_HASH} | awk '{print $2}') | ||
go mod edit -replace=github.com/smartcontractkit/chainlink/v2/core/chains/evm=${MODULE}@${PSEUDO_VERSION} | ||
go mod tidy | ||
run: go get github.com/smartcontractkit/chainlink-integrations/evm/relayer@${{ inputs.evm-ref }} | ||
- name: Run short tests | ||
if: ${{ needs.filter.outputs.changes == 'true' && matrix.type.cmd == 'go_core_tests' }} | ||
run: go test -short ./... | ||
|
@@ -292,30 +272,10 @@ jobs: | |
- name: Download Go vendor packages | ||
if: ${{ needs.filter.outputs.changes == 'true' }} | ||
run: go mod download | ||
|
||
- name: Setup Github Token | ||
id: get-gh-token | ||
uses: smartcontractkit/.github/actions/setup-github-token@ef78fa97bf3c77de6563db1175422703e9e6674f # [email protected] | ||
with: | ||
aws-role-arn: ${{ secrets.AWS_OIDC_GLOBAL_READ_ONLY_TOKEN_ISSUER_ROLE_ARN }} | ||
aws-lambda-url: ${{ secrets.AWS_INFRA_RELENG_TOKEN_ISSUER_LAMBDA_URL }} | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
set-git-config: "true" | ||
- name: Replace the chainlink-integration deps | ||
- name: Replace chainlink-evm deps | ||
if: ${{ needs.filter.outputs.changes == 'true' && inputs.evm-ref != ''}} | ||
shell: bash | ||
env: | ||
MODULE: github.com/smartcontractkit/chainlink-integrations/evm/relayer | ||
COMMIT_HASH: ${{ inputs.evm-ref }} | ||
run: | | ||
# Update to the evm/relayer code we wish to test against | ||
go env -w GOPRIVATE=github.com/smartcontractkit/chainlink-integrations | ||
go get ${MODULE}@${COMMIT_HASH} | ||
# push replace into core go.mod, remove this once the evm migration is complete | ||
PSEUDO_VERSION=$(go list -m -mod=mod ${MODULE}@${COMMIT_HASH} | awk '{print $2}') | ||
go mod edit -replace=github.com/smartcontractkit/chainlink/v2/core/chains/evm=${MODULE}@${PSEUDO_VERSION} | ||
go mod tidy | ||
run: go get github.com/smartcontractkit/chainlink-integrations/evm/relayer@${{ inputs.evm-ref }} | ||
- name: Build binary | ||
if: ${{ needs.filter.outputs.changes == 'true' }} | ||
run: go build -o chainlink.test . | ||
|