You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by sp...@apache.org on 2021/06/02 06:57:14 UTC

[apisix-java-plugin-runner] branch main updated: ci: add Licese header checker (#25)

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

spacewander pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/apisix-java-plugin-runner.git


The following commit(s) were added to refs/heads/main by this push:
     new 21e85cb  ci: add Licese header checker (#25)
21e85cb is described below

commit 21e85cb86aceb892730568fc672e60eba7c570f0
Author: Daming <zt...@foxmail.com>
AuthorDate: Wed Jun 2 14:57:09 2021 +0800

    ci: add Licese header checker (#25)
---
 .github/workflows/ci.yaml                           |  4 ++++
 .licenserc.yaml                                     |  1 +
 .../plugin/runner/PluginRunnerApplicationTest.java  | 21 +++++++++++++++++++++
 3 files changed, 26 insertions(+)

diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 2f15a7a..8c2c832 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -35,6 +35,10 @@ jobs:
       - uses: actions/setup-java@v1
         with:
           java-version: 8
+      - name: Check License Header
+        uses: apache/skywalking-eyes@main
+        env:
+           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
       - name: 'Install & Test'
         run: mvn clean install
 
diff --git a/.licenserc.yaml b/.licenserc.yaml
index 1a12584..2012c56 100644
--- a/.licenserc.yaml
+++ b/.licenserc.yaml
@@ -27,5 +27,6 @@ header:
     - 'NOTICE'
     - '.mvn'
     - '**/target/**'
+    - '**/*.iml'
 
   comment: on-failure
diff --git a/runner-starter/src/test/java/org/apache/apisix/plugin/runner/PluginRunnerApplicationTest.java b/runner-starter/src/test/java/org/apache/apisix/plugin/runner/PluginRunnerApplicationTest.java
index 3b0418d..22ade7f 100644
--- a/runner-starter/src/test/java/org/apache/apisix/plugin/runner/PluginRunnerApplicationTest.java
+++ b/runner-starter/src/test/java/org/apache/apisix/plugin/runner/PluginRunnerApplicationTest.java
@@ -1,3 +1,23 @@
+/*
+ * 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.
+ *
+ */
+
 package org.apache.apisix.plugin.runner;
 
 import io.netty.channel.unix.DomainSocketAddress;
@@ -52,3 +72,4 @@ class PluginRunnerApplicationTest {
         assertThat(exception.getMessage()).isEqualTo("java.io.FileNotFoundException");
     }
 }
+