feat: add lint/e2e tests support (#126)

Signed-off-by: bitliu <bitliu@tencent.com>
This commit is contained in:
Xunzhuo
2023-01-18 10:14:22 +08:00
committed by GitHub
parent 0bf395a423
commit b410fc96e3
38 changed files with 2897 additions and 19 deletions

View File

@@ -7,11 +7,16 @@ on:
branches: ["*"]
jobs:
#TODO(@Xunzhuo): add lint tools to do static code analyse.
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19
# There are too many lint errors in current code bases
# uncomment when we decide what lint should be addressed or ignored.
# - run: make lint
coverage-test:
runs-on: ubuntu-latest
@@ -32,10 +37,6 @@ jobs:
# The type of runner that the job will run on
runs-on: ubuntu-latest
needs: [lint,coverage-test]
strategy:
matrix:
golang:
- 1.19
steps:
- name: "Setup Go"
uses: actions/setup-go@v3
@@ -67,7 +68,12 @@ jobs:
runs-on: ubuntu-latest
needs: [build]
steps:
- name: "Setup Go"
uses: actions/setup-go@v3
with:
go-version: 1.19
- uses: actions/checkout@v3
- run: make e2e-test
publish:
runs-on: ubuntu-latest