diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index dfd7ef68..00000000 --- a/.drone.yml +++ /dev/null @@ -1,17 +0,0 @@ -kind: pipeline -name: development - -steps: - #- name: Check coding style - # pull: never - # image: drone/base:golangci-lint - # depends_on: [ clone ] - # commands: - # - golangci-lint run ./... - - - name: Unit test and build - pull: never - image: drone/base:gotest - depends_on: [ clone ] - commands: - - gotestsum ./... -v -cover -race diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 00000000..babf3d31 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,25 @@ +name: Go + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: '1.14.4' + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./...