From fe111fc6570d7907de1687f488eb0601fd66e4f7 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 26 Jan 2022 13:32:12 +0000 Subject: [PATCH] Add GitHub Actions --- .github/workflows/ci.yaml | 10 ++++++++++ run | 4 ++++ 2 files changed, 14 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..965f73d --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,10 @@ +name: CI + +on: push + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: ./run ci:test diff --git a/run b/run index ab60685..21f223a 100755 --- a/run +++ b/run @@ -1,5 +1,9 @@ #!/bin/bash +function ci:test { + go test "${@}" +} + function go { docker-compose run --rm app go "${@}" }