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:
Gerhard Lazu 2022-02-04 12:18:21 +00:00
parent 1b17d3b9e2
commit bcd175e5eb
No known key found for this signature in database
GPG Key ID: A28DE70C9444D7A6
5 changed files with 76 additions and 112 deletions

View File

@ -3,30 +3,28 @@ name: Lint
on:
push:
branches: [main]
ignore-paths:
paths:
- '**.go'
- '**.sh'
- '**.bash'
- '**.cue'
- 'docs/**'
- 'infra/**'
- 'website/**'
- '.gitignore'
- '.golangci.yml'
- '.goreleaser.yml'
- 'Dockerfile'
- 'install.ps1'
- 'semver'
- 'tracing.compose.yaml'
- 'Makefile'
- 'README.md'
- '.github/workflows/lint.yml'
pull_request:
branches: [main]
ignore-paths:
paths:
- '**.go'
- '**.sh'
- '**.bash'
- '**.cue'
- 'docs/**'
- 'infra/**'
- 'website/**'
- '.gitignore'
- '.golangci.yml'
- '.goreleaser.yml'
- 'Dockerfile'
- 'install.ps1'
- 'semver'
- 'tracing.compose.yaml'
- 'Makefile'
- 'README.md'
- '.github/workflows/lint.yml'
jobs:
everything:

View File

@ -3,30 +3,20 @@ name: "Test Docs"
on:
push:
branches: [main]
ignore-paths:
- 'infra/**'
- 'website/**'
- '.gitignore'
- '.golangci.yml'
- '.goreleaser.yml'
- 'Dockerfile'
- 'README.md'
- 'install.ps1'
- 'semver'
- 'tracing.compose.yaml'
paths:
- '**.go'
- '**.cue'
- 'docs/**'
- 'Makefile'
- '.github/workflows/test-docs.yml'
pull_request:
branches: [main]
ignore-paths:
- 'infra/**'
- 'website/**'
- '.gitignore'
- '.golangci.yml'
- '.goreleaser.yml'
- 'Dockerfile'
- 'README.md'
- 'install.ps1'
- 'semver'
- 'tracing.compose.yaml'
paths:
- '**.go'
- '**.cue'
- 'docs/**'
- 'Makefile'
- '.github/workflows/test-docs.yml'
jobs:
docs:

View File

@ -3,32 +3,26 @@ name: "Test Integration"
on:
push:
branches: [main]
ignore-paths:
- 'docs/**'
- 'infra/**'
- 'website/**'
- '.gitignore'
- '.golangci.yml'
- '.goreleaser.yml'
- 'Dockerfile'
- 'README.md'
- 'install.ps1'
- 'semver'
- 'tracing.compose.yaml'
paths:
- '**.sh'
- '**.bash'
- '**.go'
- '**.cue'
- 'Makefile'
- 'go.mod'
- 'go.sum'
- '.github/workflows/test-integration.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:
- '**.sh'
- '**.bash'
- '**.go'
- '**.cue'
- 'Makefile'
- 'go.mod'
- 'go.sum'
- '.github/workflows/test-integration.yml'
jobs:
integration:

View File

@ -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:

View File

@ -3,32 +3,26 @@ name: "Test Universe"
on:
push:
branches: [main]
ignore-paths:
- 'docs/**'
- 'infra/**'
- 'website/**'
- '.gitignore'
- '.golangci.yml'
- '.goreleaser.yml'
- 'Dockerfile'
- 'README.md'
- 'install.ps1'
- 'semver'
- 'tracing.compose.yaml'
paths:
- '**.sh'
- '**.bash'
- '**.go'
- '**.cue'
- 'Makefile'
- 'go.mod'
- 'go.sum'
- '.github/workflows/test-universe.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:
- '**.sh'
- '**.bash'
- '**.go'
- '**.cue'
- 'Makefile'
- 'go.mod'
- 'go.sum'
- '.github/workflows/test-universe.yml'
jobs:
universe: