diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..f309246 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,42 @@ +on: + pull_request: + branches: + - main + - master + push: + branches: + - main + - master + +env: + GOFLAGS: "-mod=vendor" + +jobs: + test: + name: Test + runs-on: ubuntu-20.04 + strategy: + fail-fast: false + steps: + - name: Check out code + uses: actions/checkout@v4 + + - uses: actions/setup-go@v5 + with: + go-version: '1.13' + + - name: Setup + run: | + make tools + go mod vendor + + - name: Code Lint + run: make lint + + - name: Code UnitTest + run: make test + + - name: Generated Code is Current + run: | + make gen + git diff --quiet diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 8285f0d..0000000 --- a/.travis.yml +++ /dev/null @@ -1,32 +0,0 @@ -dist: xenial -sudo: required -services: - - docker -language: go - -env: - global: - - GOFLAGS=-mod=vendor - -matrix: - fast_finish: true - allow_failures: - - go: tip - include: - - go: "1.13.x" - name: "Code Lint" - script: make lint - - go: "1.13.x" - name: "Code UnitTest" - script: make test - - go: "1.13.x" - name: "Generated Code is Current" - script: make gen && git diff --quiet - -install: - - make tools - - go mod vendor - -# branches: -# only: -# - master