summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/go.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/go.yml')
-rw-r--r--.github/workflows/go.yml10
1 files changed, 9 insertions, 1 deletions
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml
index 0869fb8db..3a6a592d1 100644
--- a/.github/workflows/go.yml
+++ b/.github/workflows/go.yml
@@ -6,6 +6,7 @@ on:
pull_request:
branches:
- master
+ - feature/**
jobs:
generate:
@@ -49,7 +50,14 @@ jobs:
key: ${{ runner.os }}-bazel-${{ hashFiles('WORKSPACE') }}
restore-keys: |
${{ runner.os }}-bazel-
- - run: make build TARGETS="//:gopath"
+ # Create gopath to merge the changes. The first execution will create
+ # symlinks to the cache, e.g. bazel-bin. Once the cache is setup, delete
+ # old gopath files that may exist from previous runs (and could contain
+ # files that are now deleted). Then run gopath again for good.
+ - run: |
+ make build TARGETS="//:gopath"
+ rm -rf bazel-bin/gopath
+ make build TARGETS="//:gopath"
- run: tools/go_branch.sh
- run: git checkout go && git clean -f
- run: go build ./...