1b17d3b9e2
These paths shouldn't trigger lint or test runs. Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
50 lines
913 B
YAML
50 lines
913 B
YAML
name: "Test Unit"
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
ignore-paths:
|
|
- 'docs/**'
|
|
- 'infra/**'
|
|
- 'website/**'
|
|
- '.gitignore'
|
|
- '.golangci.yml'
|
|
- '.goreleaser.yml'
|
|
- 'Dockerfile'
|
|
- 'README.md'
|
|
- 'install.ps1'
|
|
- 'semver'
|
|
- 'tracing.compose.yaml'
|
|
pull_request:
|
|
branches: [main]
|
|
ignore-paths:
|
|
- 'docs/**'
|
|
- 'infra/**'
|
|
- 'website/**'
|
|
- '.gitignore'
|
|
- '.golangci.yml'
|
|
- '.goreleaser.yml'
|
|
- 'Dockerfile'
|
|
- 'README.md'
|
|
- 'install.ps1'
|
|
- 'semver'
|
|
- 'tracing.compose.yaml'
|
|
|
|
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
|