From 0cd7ffc7306922a09776583faad4e51625e1dec2 Mon Sep 17 00:00:00 2001 From: Jonathan Scholz Date: Mon, 26 Aug 2019 16:18:02 +0200 Subject: [PATCH] ci: Add github actions (#17) --- .circleci/config.yml | 17 ----------------- .github/workflows/go.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 17 deletions(-) delete mode 100644 .circleci/config.yml create mode 100644 .github/workflows/go.yml 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 ./...