ci: checkout code before git diff check (#4779)

This commit is contained in:
Marko
2020-04-29 21:48:10 +02:00
committed by GitHub
parent d1bd596bce
commit ffc73ba03d

View File

@@ -19,6 +19,7 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v1
with:
SUFFIX_FILTER: |
@@ -30,7 +31,6 @@ jobs:
- name: Set GOBIN
run: |
echo "::add-path::$(go env GOPATH)/bin"
- uses: actions/checkout@v2
- name: install
run: make install install_abci
if: "env.GIT_DIFF != ''"
@@ -45,6 +45,7 @@ jobs:
runs-on: ubuntu-latest
needs: Build
steps:
- uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v1
with:
SUFFIX_FILTER: |
@@ -56,7 +57,6 @@ jobs:
- name: Set GOBIN
run: |
echo "::add-path::$(go env GOPATH)/bin"
- uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/go/bin
@@ -71,6 +71,7 @@ jobs:
runs-on: ubuntu-latest
needs: Build
steps:
- uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v1
with:
SUFFIX_FILTER: |
@@ -82,7 +83,6 @@ jobs:
- name: Set GOBIN
run: |
echo "::add-path::$(go env GOPATH)/bin"
- uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/go/bin