diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index c9a459431c..048183463c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -71,6 +71,28 @@ jobs:
- name: Upload coverage report to codecov.io
run: bash <(curl -s https://codecov.io/bash) || echo 'Failed to upload coverage report!'
+ checkstyle:
+ name: Checkstyle
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+
+ - name: Download checkstyle exectable
+ run: wget -O - -q https://github.com/checkstyle/checkstyle/releases/download/checkstyle-8.44/checkstyle-8.44-all.jar > ./checkstyle.jar
+
+ - name: Download reviewdog exectable
+ run: wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b . v0.12.0
+
+ - name: Check code style
+ env:
+ REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ run: |
+ java -jar ./checkstyle.jar -c ./style/checkStyle.xml -f xml ./eventmesh-* \
+ | ./reviewdog -f=checkstyle -reporter=github-pr-check -filter-mode=nofilter -fail-on-error
+
license-check:
name: License Check
diff --git a/style/checkStyle.xml b/style/checkStyle.xml
new file mode 100644
index 0000000000..fe85f611c0
--- /dev/null
+++ b/style/checkStyle.xml
@@ -0,0 +1,47 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/style/copyright/Apache.xml b/style/copyright/Apache.xml
deleted file mode 100644
index 8b112eea16..0000000000
--- a/style/copyright/Apache.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file