You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ke...@apache.org on 2021/03/30 13:53:02 UTC
[skywalking-kubernetes-event-exporter] 01/01: chore: set up CI
workflow
This is an automated email from the ASF dual-hosted git repository.
kezhenxu94 pushed a commit to branch chore/ci
in repository https://gitbox.apache.org/repos/asf/skywalking-kubernetes-event-exporter.git
commit 40d7e13eecc701c08413d7f013c2739f73f6eca1
Author: kezhenxu94 <ke...@apache.org>
AuthorDate: Tue Mar 30 21:52:28 2021 +0800
chore: set up CI workflow
---
.github/workflows/build-and-test.yaml | 52 +++++++++++++++++++++++++++++++++++
.gitignore | 3 +-
Makefile | 2 +-
3 files changed, 55 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml
new file mode 100644
index 0000000..a63d84b
--- /dev/null
+++ b/.github/workflows/build-and-test.yaml
@@ -0,0 +1,52 @@
+# 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.
+#
+
+name: Build and Test
+
+on:
+ pull_request:
+
+jobs:
+ build-and-test:
+ name: Build LicenseEye
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+
+ - uses: actions/setup-go@v2
+ with:
+ go-version: 1.16
+
+ - name: Check License
+ uses: apache/skywalking-eyes@main
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
+ - name: Test
+ run: make test
+
+ - name: Build
+ run: make build
+
+ gateway:
+ name: CI Gateway
+ runs-on: ubuntu-latest
+ steps:
+ - run: echo "Just to make the check statuses passed"
+ needs:
+ - build-and-test
diff --git a/.gitignore b/.gitignore
index efbd7bb..f005814 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,8 +1,9 @@
-.*
.idea
coverage.txt
bin
+.DS_Store
+
# Binaries for programs and plugins
*.exe
*.exe~
diff --git a/Makefile b/Makefile
index 3fe6c6a..75d5ab3 100644
--- a/Makefile
+++ b/Makefile
@@ -59,7 +59,7 @@ license: clean
.PHONY: test
test: clean
$(GO_TEST) ./... -coverprofile=coverage.txt -covermode=atomic
- @>&2 echo "Great, all tests passed."
+ @>&2 echo "Great, all tests passed!!"
.PHONY: $(PLATFORMS)
$(PLATFORMS):