From 25641a0615104ea828b00a0a21f1da206e608b03 Mon Sep 17 00:00:00 2001 From: James Harris Date: Mon, 20 Apr 2020 08:09:05 +1000 Subject: [PATCH] Add GHI CI configuration. --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) 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..05e95b1 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: CI +on: + push: + branches: + - '*' + pull_request: + schedule: + - cron: 0 14 * * 0 +jobs: + ci: + name: Continuous Integration + runs-on: ubuntu-latest + steps: + - name: Set up Go + uses: actions/setup-go@v1 + with: + go-version: 1.13 + id: go + - name: Checkout + uses: actions/checkout@v1 + - name: Make + run: make ci + - name: Upload Coverage Reports + if: success() + run: | + test ! -z "$TOKEN" + bash <(curl -s https://codecov.io/bash) -t "$TOKEN" -B "${{ github.ref }}" + env: + TOKEN: "${{ secrets.CODECOV_TOKEN }}"