Skip to content

Merge pull request #110 from cdk-team/main-dev #137

Merge pull request #110 from cdk-team/main-dev

Merge pull request #110 from cdk-team/main-dev #137

Workflow file for this run

name: Go Check
on: [push, pull_request]
jobs:
buildable:
name: Buildable and Runable
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: build
uses: actions/setup-go@v2
with:
go-version: '1.17'
- run: |
export CGO_ENABLED=0
GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w " ./cmd/cdk/cdk.go
GOOS=linux GOARCH=386 go build -ldflags="-s -w " ./cmd/cdk/cdk.go
GOOS=linux GOARCH=arm go build -ldflags="-s -w " ./cmd/cdk/cdk.go
GOOS=linux GOARCH=arm64 go build -ldflags="-s -w " ./cmd/cdk/cdk.go
GOOS=linux GOARCH=amd64 go build -ldflags="-s -w " ./cmd/cdk/cdk.go
# test main function with Evaluate, Exploit and Tool
go test -v -timeout 30s -run ^TestParseCDKMain$ pkg/cli/*.go