|
|
@ -23,7 +23,7 @@ jobs:
|
|
|
|
|
|
|
|
|
|
|
|
go mod vendor
|
|
|
|
go mod vendor
|
|
|
|
|
|
|
|
|
|
|
|
go test -v -tags "static" $(go list ./... | grep -v /vendor/)
|
|
|
|
go test -race -coverprofile=coverage.txt -covermode=atomic -v -tags "static" $(go list ./... | grep -v /vendor/)
|
|
|
|
|
|
|
|
|
|
|
|
go build -ldflags "-X main.goos=linux -X main.goarch=amd64" -o scrutiny-web-linux-amd64 -tags "static" webapp/backend/cmd/scrutiny/scrutiny.go
|
|
|
|
go build -ldflags "-X main.goos=linux -X main.goarch=amd64" -o scrutiny-web-linux-amd64 -tags "static" webapp/backend/cmd/scrutiny/scrutiny.go
|
|
|
|
go build -ldflags "-X main.goos=linux -X main.goarch=amd64" -o scrutiny-collector-metrics-linux-amd64 -tags "static" collector/cmd/collector-metrics/collector-metrics.go
|
|
|
|
go build -ldflags "-X main.goos=linux -X main.goarch=amd64" -o scrutiny-collector-metrics-linux-amd64 -tags "static" collector/cmd/collector-metrics/collector-metrics.go
|
|
|
@ -37,6 +37,11 @@ jobs:
|
|
|
|
path: |
|
|
|
|
path: |
|
|
|
|
${{ env.PROJECT_PATH }}/scrutiny-web-linux-amd64
|
|
|
|
${{ env.PROJECT_PATH }}/scrutiny-web-linux-amd64
|
|
|
|
${{ env.PROJECT_PATH }}/scrutiny-collector-metrics-linux-amd64
|
|
|
|
${{ env.PROJECT_PATH }}/scrutiny-collector-metrics-linux-amd64
|
|
|
|
|
|
|
|
- uses: codecov/codecov-action@v1
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
file: coverage.txt
|
|
|
|
|
|
|
|
flags: unittests
|
|
|
|
|
|
|
|
fail_ci_if_error: true
|
|
|
|
build-docker:
|
|
|
|
build-docker:
|
|
|
|
name: Build Docker
|
|
|
|
name: Build Docker
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|