diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 500658e..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,17 +0,0 @@ -version: 2 -jobs: - test: - docker: - - image: circleci/golang:1.11.4 - environment: - GO111MODULE: "on" - steps: - - checkout - - run: - name: Test - command: go test ./... -workflows: - version: 2 - build: - jobs: - - test diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..04dff92 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,28 @@ +name: Go +on: [push] +jobs: + + build: + name: Test + runs-on: ubuntu-latest + steps: + + - name: Set up Go 1.12 + uses: actions/setup-go@v1 + with: + go-version: 1.12 + id: go + + - name: Check out code into the Go module directory + uses: actions/checkout@v1 + + - name: Get dependencies + run: | + go get -v -t -d ./... + if [ -f Gopkg.toml ]; then + curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh + dep ensure + fi + + - name: Run tests + run: go test -v ./...