Add LTS tests, cleanup actions
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user