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 <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
