diff options
author | Haibo Huang <hhb@google.com> | 2021-02-09 23:59:55 -0800 |
---|---|---|
committer | Haibo Huang <hhb@google.com> | 2021-02-09 23:59:55 -0800 |
commit | efd766e4f6509a71dc88162251d17381dba22a88 (patch) | |
tree | f9f41bab9dbe13a435a5b620c904470f1eb9053c /.github | |
parent | e11f231f09baa820f4f3f40ee130ac663321c83e (diff) | |
download | vsock-efd766e4f6509a71dc88162251d17381dba22a88.tar.gz |
Upgrade rust/crates/vsock to 0.2.3
Test: make
Change-Id: I3dcb8b2d7eced30b99d792c42bc7ca3a375ed1d7
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/bvt.yaml | 31 | ||||
-rw-r--r-- | .github/workflows/commit-message-check.yaml | 53 |
2 files changed, 84 insertions, 0 deletions
diff --git a/.github/workflows/bvt.yaml b/.github/workflows/bvt.yaml new file mode 100644 index 0000000..78906ec --- /dev/null +++ b/.github/workflows/bvt.yaml @@ -0,0 +1,31 @@ +name: BVT +on: [pull_request] +jobs: + bvt: + name: BVT + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: install dependencies + run: | + rustup target add x86_64-unknown-linux-musl + rustup component add rustfmt clippy + - name: Format Check + run: make fmt + - name: Clippy Check + run: make clippy + - name: Build + run: make vsock + - name: Build echo_server + run: make echo_server + + ## Unfortunately GitHub Acions doesn't support nested virtualization at the moment, + ## And the vsock have bugs on qemu + tcg, so we can't run the unit test for now. + # - name: Install QEMU + # run: | + # sudo apt-get install qemu-system-x86 -y + # sudo modprobe vhost_vsock + # - name: Run Unit Test + # run: | + # make vm-for-action + # make check diff --git a/.github/workflows/commit-message-check.yaml b/.github/workflows/commit-message-check.yaml new file mode 100644 index 0000000..4d1c57e --- /dev/null +++ b/.github/workflows/commit-message-check.yaml @@ -0,0 +1,53 @@ +name: Commit Message Check +on: + pull_request: + types: + - opened + - reopened + - synchronize + +env: + error_msg: |+ + See the document below for help on formatting commits for the project. + + https://github.com/kata-containers/community/blob/master/CONTRIBUTING.md#patch-forma + +jobs: + commit-message-check: + runs-on: ubuntu-latest + name: Commit Message Check + steps: + - name: Get PR Commits + id: 'get-pr-commits' + uses: tim-actions/get-pr-commits@v1.0.0 + with: + token: ${{ secrets.GITHUB_TOKEN }} + + - name: DCO Check + uses: tim-actions/dco@2fd0504dc0d27b33f542867c300c60840c6dcb20 + with: + commits: ${{ steps.get-pr-commits.outputs.commits }} + + - name: Commit Body Missing Check + if: ${{ success() || failure() }} + uses: tim-actions/commit-body-check@v1.0.2 + with: + commits: ${{ steps.get-pr-commits.outputs.commits }} + + - name: Check Subject Line Length + if: ${{ success() || failure() }} + uses: tim-actions/commit-message-checker-with-regex@v0.3.1 + with: + commits: ${{ steps.get-pr-commits.outputs.commits }} + pattern: '^.{0,75}(\n.*)*$' + error: 'Subject too long (max 75)' + post_error: ${{ env.error_msg }} + + - name: Check Body Line Length + if: ${{ success() || failure() }} + uses: tim-actions/commit-message-checker-with-regex@v0.3.1 + with: + commits: ${{ steps.get-pr-commits.outputs.commits }} + pattern: '^.+(\n.{0,72})*$|^.+\n\s*[^a-zA-Z\s\n]|^.+\n\S+$' + error: 'Body line too long (max 72)' + post_error: ${{ env.error_msg }} |