From 0810809166455a8007c22397314e9c9d762beef3 Mon Sep 17 00:00:00 2001 From: Paul Jolly Date: Thu, 18 Jun 2020 15:31:49 +0100 Subject: [PATCH] ci: add basic go tests to GitHub actions (#389) We can add more extensive tests at a later date, but this is a good start. --- .github/workflows/test.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8a21b3c..e35fc9d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,5 +1,3 @@ -name: CI - on: push: branches: @@ -8,11 +6,21 @@ on: branches: - '**' +name: Go jobs: - build: - runs-on: ubuntu-latest + test: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + go_version: ["1.13.9", "1.14.1"] + runs-on: ${{ matrix.os }} steps: - name: Checkout code uses: actions/checkout@722adc63f1aa60a57ec37892e133b1d319cae598 - - name: Run a one-line script - run: echo Hello, world! + - name: Install Go + uses: actions/setup-go@9fbc767707c286e568c92927bbf57d76b73e0892 + with: + go-version: ${{ matrix.go_version }} + - name: Test + run: go test ./...