-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
131 changed files
with
15,743 additions
and
672 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,6 @@ jobs: | |
~/go/pkg/mod | ||
~/.cache/go-build | ||
key: ${{ github.job }}-${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }} | ||
restore-keys: ${{ github.job }}-${{ runner.os }}-go-build- | ||
- name: Build | ||
run: go build -v ./... | ||
test: | ||
|
@@ -41,7 +40,6 @@ jobs: | |
~/go/pkg/mod | ||
~/.cache/go-build | ||
key: ${{ github.job }}-${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }} | ||
restore-keys: ${{ github.job }}-${{ runner.os }}-go-build- | ||
# Dependency for Go module github.com/google/gopacket | ||
- name: Install libpcap-dev | ||
run: sudo apt-get -y install libpcap-dev | ||
|
@@ -75,7 +73,6 @@ jobs: | |
~/.cache/go-build | ||
~/.cache/staticcheck | ||
key: ${{ github.job }}-${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }} | ||
restore-keys: ${{ github.job }}-${{ runner.os }}-go-build- | ||
# Dependency for Go module github.com/google/gopacket | ||
- name: Install libpcap-dev | ||
run: sudo apt-get -y install libpcap-dev | ||
|
@@ -99,9 +96,11 @@ jobs: | |
# | ||
# goimports does not support "gofmt -s" so both goimports and gofmt are | ||
# required. | ||
if goimports -d . | grep '^'; then | ||
exit 1 | ||
fi | ||
find . -name "*.go" | egrep -v "pb.go$" | while read l; do | ||
if goimports -d $l | grep '^'; then | ||
exit 1; | ||
fi; | ||
done | ||
- name: Get revive | ||
run: go install github.com/mgechev/[email protected] | ||
- name: Run revive | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
steps: | ||
- id: fetch-secrets | ||
name: gcr.io/cloud-builders/gcloud | ||
script: | | ||
gcloud secrets versions access latest --secret=featureprofiles-ci-ssh > builder-key | ||
gcloud secrets versions access latest --secret=featureprofiles-ci-ssh-pub > builder-key.pub | ||
- id: fp-presubmit | ||
name: gcr.io/${PROJECT_ID}/remote-builder | ||
waitFor: ["-"] | ||
env: | ||
- USERNAME=user | ||
- SSH_ARGS=--internal-ip --ssh-key-expire-after=1d | ||
- SSH_ARGS=--internal-ip | ||
- INSTANCE_NAME=fp-presubmit-${BUILD_ID} | ||
- INSTANCE_ARGS=--network cloudbuild-workers --image-project gep-kne --image-family kne --machine-type ${_MACHINE_TYPE} ${_MACHINE_ARGS} --boot-disk-size 200GB [email protected] --scopes=default,compute-rw | ||
- ZONE=us-west1-a | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.