From 6f0d4fc6e2938b2496b9fe238d7b9d11ccd72214 Mon Sep 17 00:00:00 2001 From: Abdul Rabbani Date: Thu, 21 Apr 2022 17:29:06 -0400 Subject: [PATCH] Add Manual Trigger --- .github/workflows/on-pr-manual.yml | 55 ++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/on-pr-manual.yml diff --git a/.github/workflows/on-pr-manual.yml b/.github/workflows/on-pr-manual.yml new file mode 100644 index 0000000..edd2fa2 --- /dev/null +++ b/.github/workflows/on-pr-manual.yml @@ -0,0 +1,55 @@ +name: Test Application Manually + +on: + workflow_dispatch: + inputs: + foundry-test-ref: + description: "The branch, commit or sha from foundry-test to checkout" + required: false + default: "main" + ipld-eth-db-ref: + description: "The branch, commit or sha from ipld-eth-db to checkout" + required: false + default: "main" + +jobs: + build: + name: Run docker build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Run docker build + run: make docker-build + test: + name: Run unit tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - uses: actions/checkout@v3 + with: + ref: ${{ github.event.inputs.foundry-test-ref }} + path: "./foundry-test/" + + - uses: actions/checkout@v3 + with: + ref: ${{ github.event.inputs.foundry-test-ref }} + path: "/tmp/foundry-test/" + + - uses: actions/checkout@v3 + with: + ref: ${{ github.event.inputs.ipld-eth-db-ref }} + path: "/tmp/ipld-eth-db-ref/" + + - name: Run docker compose + run: | + docker-compose -e vulcanize_ipld_ethcl_indexer="$(pwd)/ipld-ethcl/indexer" \ + -e vulcanize_ipld_eth_db=/tmp/ipld-eth-db-ref/ + -f "/tmp/foundry-test/docker/local/docker-compose-db.yml" + -f "/tmp/foundry-test/docker/latest/docker-compose-lighthouse.yml" + -d up --build + + - name: Wait and run tests + run: | + sleep 20 + make test