Add LTS tests, cleanup actions

This commit is contained in:
Paul Tyng
2020-02-10 10:13:55 -05:00
parent 4fb06ed6cb
commit 78054b35ed
2 changed files with 44 additions and 9 deletions

View File

@@ -1,10 +1,19 @@
name: Go
on: [push, pull_request]
name: Acceptance Tests
on:
pull_request:
paths-ignore:
- 'README.md'
push:
paths-ignore:
- 'README.md'
schedule:
- cron: '0 13 * * *'
jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Set up Go 1.13
@@ -15,11 +24,6 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v1
# TODO: convert this to `services`
- name: Start Unifi controller
run: |
./controller.sh start
- name: Get dependencies
run: |
@@ -28,6 +32,37 @@ jobs:
- name: Build
run: |
go build -v .
test:
name: Matrix Test
needs: build
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
version:
- lts
- stable
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
# TODO: convert this to `services`
- name: Start Unifi controller
run: |
./controller.sh start ${{ matrix.version }}
- name: Get dependencies
run: |
go mod download
- name: TF acceptance tests
timeout-minutes: 10