Skip to content

Commit

Permalink
Update actions (#136)
Browse files Browse the repository at this point in the history
Signed-off-by: Knative Automation <automation@knative.team>
  • Loading branch information
knative-automation authored May 14, 2021
1 parent d37f3af commit 6bebff1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/knative-go-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@ jobs:
- name: Check out code
uses: actions/checkout@v2

- id: go_mod
uses: andstor/file-existence-action@v1
with:
files: go.mod

- name: Build
if: ${{ steps.go_mod.outputs.files_exists == 'true' }}
run: |
tags="$(grep -I -r '// +build' . | \
grep -v '^./vendor/' | \
Expand All @@ -55,5 +61,4 @@ jobs:
tr '\n' ' ')"
echo "Building with tags: ${tags}"
go test -vet=off -tags "${tags}" -run=^$ ./... | grep -v "no test" || true
go test -vet=off -tags "${tags}" -exec echo ./...

0 comments on commit 6bebff1

Please sign in to comment.