This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-rover.git


The following commit(s) were added to refs/heads/main by this push:
     new 53522a2  Basic Initialize (#1)
53522a2 is described below

commit 53522a2763047bd3db0ceafbc61276cc30e2ffab
Author: mrproliu <[email protected]>
AuthorDate: Fri Feb 18 15:55:32 2022 +0800

    Basic Initialize (#1)
---
 .asf.yaml                             |  4 +-
 .github/workflows/build-and-test.yaml | 34 ++++++++++++++--
 CHANGES.md                            | 13 ++++++
 LICENSE                               | 20 ---------
 Makefile                              | 77 +++++++++++++++++++++++++++++++++++
 cmd/roverd.go                         | 24 +++++++++++
 LICENSE => dist/LICENSE               | 22 +---------
 dist/NOTICE                           |  5 +++
 8 files changed, 152 insertions(+), 47 deletions(-)

diff --git a/.asf.yaml b/.asf.yaml
index 6abfc2c..481e0b6 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -23,7 +23,7 @@ github:
     - observability
     - apm
     - service-mesh
-    - eBPF
+    - ebpf
     - profile
     - network
   enabled_merge_buttons:
@@ -35,7 +35,7 @@ github:
       required_status_checks:
         strict: true
         contexts:
-          - result
+          - Build and Test
       required_pull_request_reviews:
         dismiss_stale_reviews: true
         required_approving_review_count: 1
diff --git a/.github/workflows/build-and-test.yaml 
b/.github/workflows/build-and-test.yaml
index a0aafc0..9640493 100644
--- a/.github/workflows/build-and-test.yaml
+++ b/.github/workflows/build-and-test.yaml
@@ -23,9 +23,35 @@ on:
       - main
 
 jobs:
-  result:
-    runs-on: ubuntu-latest
+  build:
+    name: Build and Test
+    runs-on: ${{ matrix.runner }}-latest
     timeout-minutes: 30
+    strategy:
+      matrix:
+        go-version: [ 1.17 ]
+        runner: [ ubuntu ]
+      fail-fast: true
     steps:
-      - name: Build Result
-        run: echo "Just to make the GitHub merge button green"
+      - name: Set up Go ${{ matrix.go-version }}
+        uses: actions/setup-go@v2
+        with:
+          go-version: ${{ matrix.go-version }}
+      - name: Check out code into the Go module directory
+        uses: actions/checkout@v2
+        with:
+          submodules: true
+      - name: Check License
+        if: matrix.runner == 'ubuntu'
+        uses: apache/skywalking-eyes@9bd5feb86b5817aa6072b008f9866a2c3bbc8587
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+      - name: Get dependencies
+        run: make deps
+      - name: Lint
+        run: make lint
+      - name: Test
+        run: make test
+      - name: Check CI Consistency
+        if: matrix.go-version == '1.17' && matrix.runner == 'ubuntu'
+        run: make check
\ No newline at end of file
diff --git a/CHANGES.md b/CHANGES.md
new file mode 100644
index 0000000..daec542
--- /dev/null
+++ b/CHANGES.md
@@ -0,0 +1,13 @@
+Changes by Version
+==================
+Release Notes.
+
+0.1.0
+------------------
+#### Features
+
+#### Bug Fixes
+
+#### Issues and PR
+- All issues are 
[here](https://github.com/apache/skywalking/milestone/124?closed=1)
+- All and pull requests are 
[here](https://github.com/apache/skywalking-rover/milestone/1?closed=1)
\ No newline at end of file
diff --git a/LICENSE b/LICENSE
index 3c2e470..1d54094 100644
--- a/LICENSE
+++ b/LICENSE
@@ -208,23 +208,3 @@ notices and license terms. Your use of the source code for 
the these
 subcomponents is subject to the terms and conditions of the following
 licenses.
 
-========================================================================
-Apache 2.0 licenses
-========================================================================
-
-The following components are provided under the Apache License. See project 
link for details.
-The text of each license is the standard Apache 2.0 license.
-
-========================================================================
-BSD licenses
-========================================================================
-
-The following components are provided under a BSD license. See project link 
for details.
-The text of each license is also included at licenses/LICENSE-[project].txt.
-
-========================================================================
-MIT licenses
-========================================================================
-
-The following components are provided under the MIT License. See project link 
for details.
-The text of each license is also included at licenses/LICENSE-[project].txt.
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..4578dda
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,77 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+VERSION ?= latest
+HUB ?= apache
+OUT_DIR = bin
+BINARY = skywalking-rover
+
+RELEASE_BIN = skywalking-rover-$(VERSION)-bin
+RELEASE_SRC = skywalking-rover-$(VERSION)-src
+
+SH = sh
+GO = go
+GIT = git
+PROTOC = protoc
+GO_PATH = $$($(GO) env GOPATH)
+GO_BUILD = $(GO) build
+GO_GET = $(GO) get
+GO_TEST = $(GO) test
+GO_LINT = $(GO_PATH)/bin/golangci-lint
+GO_BUILD_FLAGS = -v
+GO_BUILD_LDFLAGS = -X main.version=$(VERSION) -w -s
+GO_TEST_LDFLAGS =
+
+PLATFORMS := linux
+os = $(word 1, $@)
+ARCH = amd64
+
+SHELL = /bin/bash
+
+all: deps verify check
+
+.PHONY: tools
+tools:
+       $(GO_LINT) version || curl -sfL 
https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh 
-s -- -b $(GO_PATH)/bin v1.39.0
+
+deps: tools
+       $(GO_GET) -v -t -d ./...
+
+.PHONY: lint
+lint: tools
+       $(GO_LINT) run -v --timeout 5m ./...
+
+.PHONY: test
+test: clean
+       $(GO_TEST) -ldflags "$(GO_TEST_LDFLAGS)" ./... 
-coverprofile=coverage.txt -covermode=atomic
+
+.PHONY: verify
+verify: clean lint test
+
+.PHONY: clean
+clean: tools
+       -rm -rf coverage.txt
+
+.PHONY: check
+check: clean
+       $(GO) mod tidy > /dev/null
+       @if [ ! -z "`git status -s`" ]; then \
+               echo "Following files are not consistent with CI:"; \
+               git status -s; \
+               git diff; \
+               exit 1; \
+       fi
diff --git a/cmd/roverd.go b/cmd/roverd.go
new file mode 100644
index 0000000..41b5368
--- /dev/null
+++ b/cmd/roverd.go
@@ -0,0 +1,24 @@
+// Licensed to Apache Software Foundation (ASF) under one or more contributor
+// license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright
+// ownership. Apache Software Foundation (ASF) licenses this file to you under
+// the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//     http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+package main
+
+import "fmt"
+
+func main() {
+       fmt.Printf("OK")
+}
diff --git a/LICENSE b/dist/LICENSE
similarity index 91%
copy from LICENSE
copy to dist/LICENSE
index 3c2e470..1c29226 100644
--- a/LICENSE
+++ b/dist/LICENSE
@@ -203,28 +203,8 @@
 =======================================================================
 Apache SkyWalking Rover Subcomponents:
 
-The Apache SkyWalking Rover project contains subcomponents with separate 
copyright
+Apache SkyWalking Rover project contains subcomponents with separate copyright
 notices and license terms. Your use of the source code for the these
 subcomponents is subject to the terms and conditions of the following
 licenses.
 
-========================================================================
-Apache 2.0 licenses
-========================================================================
-
-The following components are provided under the Apache License. See project 
link for details.
-The text of each license is the standard Apache 2.0 license.
-
-========================================================================
-BSD licenses
-========================================================================
-
-The following components are provided under a BSD license. See project link 
for details.
-The text of each license is also included at licenses/LICENSE-[project].txt.
-
-========================================================================
-MIT licenses
-========================================================================
-
-The following components are provided under the MIT License. See project link 
for details.
-The text of each license is also included at licenses/LICENSE-[project].txt.
diff --git a/dist/NOTICE b/dist/NOTICE
new file mode 100644
index 0000000..cf67c8d
--- /dev/null
+++ b/dist/NOTICE
@@ -0,0 +1,5 @@
+Apache SkyWalking
+Copyright 2017-2022 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).

Reply via email to