You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pegasus.apache.org by wu...@apache.org on 2021/02/04 08:40:35 UTC

[incubator-pegasus] branch ci-test created (now 463b5ba)

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

wutao pushed a change to branch ci-test
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus.git.


      at 463b5ba  chore(ci): migrate pegasus ci to github action

This branch includes the following new commits:

     new 463b5ba  chore(ci): migrate pegasus ci to github action

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pegasus.apache.org
For additional commands, e-mail: commits-help@pegasus.apache.org


[incubator-pegasus] 01/01: chore(ci): migrate pegasus ci to github action

Posted by wu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

wutao pushed a commit to branch ci-test
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus.git

commit 463b5ba134bb7615457b60bdd72231efdd832046
Author: neverchanje <wu...@gmail.com>
AuthorDate: Thu Feb 4 16:39:02 2021 +0800

    chore(ci): migrate pegasus ci to github action
---
 .github/workflows/ci-pull-request.yaml | 57 ++++++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)

diff --git a/.github/workflows/ci-pull-request.yaml b/.github/workflows/ci-pull-request.yaml
new file mode 100644
index 0000000..67276f8
--- /dev/null
+++ b/.github/workflows/ci-pull-request.yaml
@@ -0,0 +1,57 @@
+# Developer Notes:
+#
+# This config is for github actions. Before merging your changes of this file,
+# it's recommended to create a PR against the ci-test branch to test if it works
+# as expected.
+
+name: pull_request
+
+on:
+  # run on each pull request
+  pull_request:
+    types: [ synchronize, reopened, labeled ]
+    branches:
+      - master
+      - 'v[0-9]+.*' # release branch
+      - ci-test # testing branch for github action
+
+defaults:
+  run:
+    shell: bash
+
+jobs:
+  lint:
+    name: Lint
+    runs-on: ubuntu-latest
+    container:
+      image: apachepegasus/clang-format-3.9
+    steps:
+      - uses: actions/checkout@v2
+        with:
+          fetch-depth: 1
+      - name: clang-format
+        run: |
+          ./rdsn/scripts/linux/run-clang-format.py
+          --clang-format-executable=clang-format-3.9
+          --exclude src/shell/linenoise/
+          --exclude src/shell/sds/
+          --exclude rdsn/
+          -r
+          src
+
+  test:
+    name: Test
+    needs: lint
+    runs-on: ubuntu-latest
+    container:
+      image: apachepegasus/ci-env
+    steps:
+      - uses: actions/checkout@v2
+        with:
+          fetch-depth: 1
+      - name: Unpack prebuilt third-parties
+        run: unzip /root/pegasus-thirdparty-output.zip -d ./rdsn/thirdparty
+      - name: Compilation
+        run: ./run.sh build -c --skip_thirdparty
+      - name: Unit Testing
+        run: ./run.sh test --skip_thirdparty


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pegasus.apache.org
For additional commands, e-mail: commits-help@pegasus.apache.org