From 5d52927cd71f06a2b01b1339e50506669a05d4c3 Mon Sep 17 00:00:00 2001 From: Anton Kucherov Date: Wed, 25 Mar 2020 16:49:44 +0300 Subject: [PATCH] Update go version and add CI pipeline. --- .github/workflows/ci.yml | 21 +++++++++++++++++++++ .go-version | 2 +- README.md | 4 +++- go.mod | 2 ++ 4 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..df5a82c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,21 @@ +name: CI + +on: [push, pull_request] + +jobs: + + test: + name: Run unit tests + runs-on: ubuntu-latest + steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + + - name: Set up proper version of Go + uses: actions/setup-go@v1 + with: + go-version: 1.14.1 + id: go + + - name: run tests + run: make test diff --git a/.go-version b/.go-version index 3d0e623..63e799c 100644 --- a/.go-version +++ b/.go-version @@ -1 +1 @@ -1.11.4 +1.14.1 diff --git a/README.md b/README.md index 723df53..2d23d0c 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,9 @@ go-teamweek =========== -[Go](http://golang.org) library for accessing the [Teamweek API](https://developers.teamweek.com/api-v4.html) +[Go](http://golang.org) library for accessing the [Toggl.Plan API](https://developers.plan.toggl.com/api-v4.html) + +[![CI](https://github.com/toggl/go-teamweek/workflows/CI/badge.svg)](https://github.com/toggl/go-teamweek/actions?query=workflow%3ACI) ### Usage ### diff --git a/go.mod b/go.mod index 26b61c0..ec63f28 100644 --- a/go.mod +++ b/go.mod @@ -1 +1,3 @@ module github.com/toggl/go-teamweek + +go 1.14