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: on:
push: push:
branches: [main] branches: [main]
ignore-paths: paths:
- '**.go'
- '**.sh'
- '**.bash'
- '**.cue'
- 'docs/**' - 'docs/**'
- 'infra/**'
- 'website/**'
- '.gitignore'
- '.golangci.yml' - '.golangci.yml'
- '.goreleaser.yml' - 'Makefile'
- 'Dockerfile' - 'README.md'
- 'install.ps1' - '.github/workflows/lint.yml'
- 'semver'
- 'tracing.compose.yaml'
pull_request: pull_request:
branches: [main] branches: [main]
ignore-paths: paths:
- '**.go'
- '**.sh'
- '**.bash'
- '**.cue'
- 'docs/**' - 'docs/**'
- 'infra/**'
- 'website/**'
- '.gitignore'
- '.golangci.yml' - '.golangci.yml'
- '.goreleaser.yml' - 'Makefile'
- 'Dockerfile' - 'README.md'
- 'install.ps1' - '.github/workflows/lint.yml'
- 'semver'
- 'tracing.compose.yaml'
jobs: jobs:
everything: everything:

View File

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

View File

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

View File

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

View File

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