File tree Expand file tree Collapse file tree 4 files changed +30
-3
lines changed Expand file tree Collapse file tree 4 files changed +30
-3
lines changed Original file line number Diff line number Diff line change 1+ name : MacOS Build & Unit Test
2+ on :
3+ push :
4+ branches : [ master ]
5+ pull_request :
6+ branches : [ master ]
7+ jobs :
8+ build :
9+ name : Build
10+ runs-on : macos-latest
11+ steps :
12+ - name : Set up Go 1.x
13+ uses : actions/setup-go@v2
14+ with :
15+ go-version : ^1.13
16+ id : go
17+ - name : Check out code into the Go module directory
18+ uses : actions/checkout@v2
19+ - name : Build Test
20+ run : |
21+ make blob-darwin
22+ - name : Run unit tests on MacOS
23+ run : go test -v -race ./pkg/...
Original file line number Diff line number Diff line change 1- name : Linux tests
1+ name : Linux Tests
22on :
33 push :
44 branches : [ master ]
Original file line number Diff line number Diff line change 1- name : Windows Test
1+ name : Windows Tests
22on :
33 push :
44 branches : [ master ]
2020 uses : actions/checkout@v2
2121 - name : Run Windows Unit Tests
2222 run : |
23- go test -v -race ./pkg/...
23+ go test -v -race ./pkg/...
Original file line number Diff line number Diff line change 8585blob-windows :
8686 CGO_ENABLED=0 GOOS=windows go build -a -ldflags ${LDFLAGS} -o _output/blobplugin.exe ./pkg/blobplugin
8787
88+ .PHONT : blob-darwin
89+ blob-darwin :
90+ CGO_ENABLED=0 GOOS=darwin go build -a -ldflags ${LDFLAGS} -o _output/blobplugin ./pkg/blobplugin
91+
8892.PHONY : container
8993container : blob
9094 docker build --no-cache -t $(IMAGE_TAG ) -f ./pkg/blobplugin/dev.Dockerfile .
You can’t perform that action at this time.
0 commit comments