bcd175e5eb
Andrea made some great suggestions, thanks! Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
38 lines
641 B
YAML
38 lines
641 B
YAML
name: "Test Unit"
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- '**.go'
|
|
- 'Makefile'
|
|
- 'go.mod'
|
|
- 'go.sum'
|
|
- '.github/workflows/test-unit.yml'
|
|
pull_request:
|
|
branches: [main]
|
|
paths:
|
|
- '**.go'
|
|
- 'Makefile'
|
|
- 'go.mod'
|
|
- 'go.sum'
|
|
- '.github/workflows/test-unit.yml'
|
|
|
|
jobs:
|
|
unit:
|
|
name: Unit
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
steps:
|
|
- name: "Check out"
|
|
uses: actions/checkout@v2
|
|
|
|
- name: "Setup Go"
|
|
uses: actions/setup-go@v1
|
|
with:
|
|
go-version: 1.16
|
|
|
|
- name: Test
|
|
run: |
|
|
make test
|