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.
This commit is contained in:
Paul Jolly
2020-06-18 15:31:49 +01:00
committed by GitHub
parent 3263cfa968
commit 0810809166

View File

@@ -1,5 +1,3 @@
name: CI
on: on:
push: push:
branches: branches:
@@ -8,11 +6,21 @@ on:
branches: branches:
- '**' - '**'
name: Go
jobs: jobs:
build: test:
runs-on: ubuntu-latest strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
go_version: ["1.13.9", "1.14.1"]
runs-on: ${{ matrix.os }}
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@722adc63f1aa60a57ec37892e133b1d319cae598 uses: actions/checkout@722adc63f1aa60a57ec37892e133b1d319cae598
- name: Run a one-line script - name: Install Go
run: echo Hello, world! uses: actions/setup-go@9fbc767707c286e568c92927bbf57d76b73e0892
with:
go-version: ${{ matrix.go_version }}
- name: Test
run: go test ./...