Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): migrate pegasus ci to github action #690

Merged
merged 12 commits into from
Feb 7, 2021
2 changes: 1 addition & 1 deletion .github/workflows/ci-pull-request-title.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v2.2.0
- uses: amannn/action-semantic-pull-request@v3.1.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
67 changes: 67 additions & 0 deletions .github/workflows/ci-pull-request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# 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
paths:
- 'rdsn/**'
- 'src/**'
- '.github/workflows/ci-pull-request.yml'
push:
paths:
- '.github/workflows/ci-pull-request.yml'
# for manually triggering workflow
workflow_dispatch:

defaults:
run:
shell: bash

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
container:
image: apachepegasus/clang-format-3.9
defaults:
run:
working-directory: /root/incubator-pegasus
steps:
- name: Clone Apache Pegasus Source
working-directory: /root
run: |
git clone --recursive --depth=1 https://github.com/apache/incubator-pegasus.git
- name: clang-format
run: ./rdsn/scripts/linux/run-clang-format.py --clang-format-executable clang-format-3.9 -e ./src/shell/linenoise -e ./src/shell/sds -e ./rdsn -r ./src

test:
name: Test
needs: lint
runs-on: ubuntu-latest
container:
image: apachepegasus/ci-env
defaults:
run:
working-directory: /root/incubator-pegasus
steps:
- name: Clone Apache Pegasus Source
working-directory: /root
run: |
git clone --recursive --depth=1 https://github.com/apache/incubator-pegasus.git
- 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 --on_travis
41 changes: 0 additions & 41 deletions .travis.yml

This file was deleted.