aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2021-01-24 14:18:07 +0100
committerMartin Polden <mpolden@mpolden.no>2021-01-24 14:18:07 +0100
commit0176a1b9d8b95a61227b463d43d3f6754f15b3fc (patch)
tree6f730ef79e6380eb6b0fbf10cf92da6f82cbaf1c
parent173b5b751eb0a7794177b6519ec49d5feaf52e3b (diff)
build: Configure GitHub Actions
-rw-r--r--.github/workflows/ci.yml19
-rw-r--r--.travis.yml4
-rw-r--r--README.md2
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
diff --git a/README.md b/README.md
index a15b05c..4cf0840 100644
--- a/README.md
+++ b/README.md
@@ -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.