|
|
|
@@ -11,6 +11,12 @@ jobs: |
|
|
|
verify-and-lint: |
|
|
|
runs-on: ubuntu-latest |
|
|
|
name: Verify codegen/vendor/licenses, do lint |
|
|
|
env: |
|
|
|
GOPATH: ${{ github.workspace }} |
|
|
|
|
|
|
|
# since client-go codegen requires that code checkout GOPATH |
|
|
|
CODE_DIR: '${{github.workspace}}/src/github.com/kubeedge/sedna' |
|
|
|
|
|
|
|
steps: |
|
|
|
- name: Install Go |
|
|
|
uses: actions/setup-go@v2 |
|
|
|
@@ -21,7 +27,7 @@ jobs: |
|
|
|
uses: actions/checkout@v2 |
|
|
|
with: |
|
|
|
fetch-depth: 0 |
|
|
|
path: ./src/github.com/${{ github.repository }} |
|
|
|
path: ${{ env.CODE_DIR }} |
|
|
|
|
|
|
|
- uses: actions/cache@v2 |
|
|
|
with: |
|
|
|
@@ -34,15 +40,15 @@ jobs: |
|
|
|
|
|
|
|
- name: Run verify test |
|
|
|
run: make verify |
|
|
|
working-directory: ./src/github.com/${{ github.repository }} |
|
|
|
working-directory: ${{ env.CODE_DIR }} |
|
|
|
|
|
|
|
- name: Run go lint test |
|
|
|
run: make lint |
|
|
|
working-directory: ./src/github.com/${{ github.repository }} |
|
|
|
working-directory: ${{ env.CODE_DIR }} |
|
|
|
|
|
|
|
- name: Run python code style test |
|
|
|
run: pycodestyle lib |
|
|
|
working-directory: ./src/github.com/${{ github.repository }} |
|
|
|
working-directory: ${{ env.CODE_DIR }} |
|
|
|
|
|
|
|
build: |
|
|
|
runs-on: ubuntu-latest |
|
|
|
|