Try combining everything into one pipeline #13

Merged
abdulrabbani00 merged 5 commits from feature/single-pr-gha into develop 2022-04-22 20:54:09 +00:00
Showing only changes of commit 35e0f7ec98 - Show all commits

View File

@ -11,6 +11,13 @@ on:
description: "The branch, commit or sha from ipld-eth-db to checkout"
required: false
default: "main"
pull_request:
paths:
- "!**.md"
- ".gitignore"
- "!LICENSE"
- "!.github/workflows/**"
- ".github/workflows/on-pr-automated.yaml"
jobs:
build:
@ -25,6 +32,8 @@ jobs:
name: Run Unit Tests
runs-on: ubuntu-latest
env:
foundry-test-ref: ${{ github.event.inputs.foundry-test-ref || 'feature/build-stack'}}
ipld-eth-db-ref: ${{ github.event.inputs.ipld-eth-db-ref || 'main' }}
GOPATH: /tmp/go
steps:
- name: Create GOPATH
@ -36,14 +45,14 @@ jobs:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.foundry-test-ref }}
ref: ${{ env.foundry-test-ref }}
path: "./foundry-test/"
repository: vulcanize/foundry-test
fetch-depth: 0
- uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.ipld-eth-db-ref }}
ref: ${{ env.ipld-eth-db-ref }}
repository: vulcanize/ipld-eth-db
path: "./ipld-eth-db/"
fetch-depth: 0
@ -86,14 +95,14 @@ jobs:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.foundry-test-ref }}
ref: ${{ env.foundry-test-ref }}
path: "./foundry-test/"
repository: vulcanize/foundry-test
fetch-depth: 0
- uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.ipld-eth-db-ref }}
ref: ${{ env.ipld-eth-db-ref }}
repository: vulcanize/ipld-eth-db
path: "./ipld-eth-db/"
fetch-depth: 0