-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
T-660225: Initial commit of Github PR audit (#31)
- Loading branch information
1 parent
b2b04f2
commit 8f17682
Showing
5 changed files
with
118 additions
and
162 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 |
---|---|---|
@@ -0,0 +1,92 @@ | ||
name: Audit | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
types: [ opened, labeled, unlabeled, synchronize, reopened, edited ] | ||
|
||
jobs: | ||
|
||
audit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '17' | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.22 | ||
|
||
- name: Install Protoc | ||
uses: arduino/setup-protoc@v3 | ||
with: | ||
version: "23.2" | ||
|
||
- name: Set up protobuf for Go | ||
working-directory: examples/connector/golang | ||
run: go install google.golang.org/protobuf/cmd/[email protected] | ||
|
||
- name: Set up protoc-gen-go | ||
working-directory: examples/connector/golang | ||
run: go install google.golang.org/grpc/cmd/[email protected] | ||
|
||
- name: Set up Go protoc path | ||
working-directory: examples/connector/golang | ||
run: export PATH="$PATH:$(go env GOPATH)/bin" | ||
|
||
- name: Verify dependencies | ||
working-directory: examples/connector/golang | ||
run: go mod verify | ||
|
||
- name: Build Go connector | ||
working-directory: examples/connector/golang | ||
run: scripts/build.sh | ||
|
||
- name: Run go vet | ||
working-directory: examples/connector/golang | ||
run: go vet ./... | ||
|
||
- name: Install staticcheck | ||
run: go install honnef.co/go/tools/cmd/staticcheck@latest | ||
|
||
- name: Run staticcheck | ||
working-directory: examples/connector/golang | ||
run: staticcheck ./... | ||
|
||
- name: Install golint | ||
run: go install golang.org/x/lint/golint@latest | ||
|
||
- name: Run golint | ||
working-directory: examples/connector/golang | ||
run: golint ./... | ||
|
||
- name: Run tests | ||
working-directory: examples/connector/golang | ||
run: go test -race -vet=off ./... | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
with: | ||
gradle-version: 8.5 | ||
|
||
- name: Run Java connector copyProtos | ||
working-directory: examples/connector/java | ||
run: gradle copyProtos | ||
|
||
- name: Run Java connector test with Gradle Wrapper | ||
working-directory: examples/connector/java | ||
run: gradle build | ||
|
||
- name: Run Java destination copyProtos | ||
working-directory: examples/destination/java | ||
run: gradle copyProtos | ||
|
||
- name: Run Java destination test with Gradle Wrapper | ||
working-directory: examples/destination/java | ||
run: gradle build |
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,6 +1,7 @@ | ||
**/.idea | ||
.DS_Store | ||
.gradle | ||
.idea | ||
**/build/ | ||
**/golang/main | ||
bin/* | ||
|
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.