diff options
author | Martin Polden <mpolden@mpolden.no> | 2021-01-24 14:18:07 +0100 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2021-01-24 14:18:07 +0100 |
commit | 0176a1b9d8b95a61227b463d43d3f6754f15b3fc (patch) | |
tree | 6f730ef79e6380eb6b0fbf10cf92da6f82cbaf1c | |
parent | 173b5b751eb0a7794177b6519ec49d5feaf52e3b (diff) |
build: Configure GitHub Actions
-rw-r--r-- | .github/workflows/ci.yml | 19 | ||||
-rw-r--r-- | .travis.yml | 4 | ||||
-rw-r--r-- | README.md | 2 |
3 files changed, 20 insertions, 5 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d4aae76 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,19 @@ +name: ci + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: install go + uses: actions/setup-go@v2 + with: + go-version: 1.15 + - name: build and test + run: make diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 30248c8..0000000 --- a/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -language: go - -go: - - stable @@ -1,6 +1,6 @@ # atbapi -[![Build Status](https://travis-ci.org/mpolden/atbapi.svg)](https://travis-ci.org/mpolden/atbapi) +![Build Status](https://github.com/mpolden/atbapi/workflows/ci/badge.svg) A minimal API for bus data in Trondheim, Norway. This API proxies requests to the AtB public API and converts the responses into a sane JSON format. |