Use paths instead of paths-ignore for trigerring actions
Andrea made some great suggestions, thanks! Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
This commit is contained in:
36
.github/workflows/test-unit.yml
vendored
36
.github/workflows/test-unit.yml
vendored
@@ -3,32 +3,20 @@ 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'
|
||||
paths:
|
||||
- '**.go'
|
||||
- 'Makefile'
|
||||
- 'go.mod'
|
||||
- 'go.sum'
|
||||
- '.github/workflows/test-unit.yml'
|
||||
pull_request:
|
||||
branches: [main]
|
||||
ignore-paths:
|
||||
- 'docs/**'
|
||||
- 'infra/**'
|
||||
- 'website/**'
|
||||
- '.gitignore'
|
||||
- '.golangci.yml'
|
||||
- '.goreleaser.yml'
|
||||
- 'Dockerfile'
|
||||
- 'README.md'
|
||||
- 'install.ps1'
|
||||
- 'semver'
|
||||
- 'tracing.compose.yaml'
|
||||
paths:
|
||||
- '**.go'
|
||||
- 'Makefile'
|
||||
- 'go.mod'
|
||||
- 'go.sum'
|
||||
- '.github/workflows/test-unit.yml'
|
||||
|
||||
jobs:
|
||||
unit:
|
||||
|
Reference in New Issue
Block a user