Merge pull request #1514 from gerhard/tests-lints-ignore-unrelated-paths

Do not run lint & tests on unrelated file changes
This commit is contained in:
Andrea Luzzardi 2022-02-04 11:35:07 -08:00 committed by GitHub
commit 5dfdf5149f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 80 additions and 0 deletions

View File

@ -3,8 +3,28 @@ name: Lint
on: on:
push: push:
branches: [main] branches: [main]
paths:
- '**.go'
- '**.sh'
- '**.bash'
- '**.cue'
- 'docs/**'
- '.golangci.yml'
- 'Makefile'
- 'README.md'
- '.github/workflows/lint.yml'
pull_request: pull_request:
branches: [main] branches: [main]
paths:
- '**.go'
- '**.sh'
- '**.bash'
- '**.cue'
- 'docs/**'
- '.golangci.yml'
- 'Makefile'
- 'README.md'
- '.github/workflows/lint.yml'
jobs: jobs:
everything: everything:

View File

@ -3,8 +3,20 @@ name: "Test Docs"
on: on:
push: push:
branches: [main] branches: [main]
paths:
- '**.go'
- '**.cue'
- 'docs/**'
- 'Makefile'
- '.github/workflows/test-docs.yml'
pull_request: pull_request:
branches: [main] branches: [main]
paths:
- '**.go'
- '**.cue'
- 'docs/**'
- 'Makefile'
- '.github/workflows/test-docs.yml'
jobs: jobs:
docs: docs:

View File

@ -3,8 +3,26 @@ name: "Test Integration"
on: on:
push: push:
branches: [main] branches: [main]
paths:
- '**.sh'
- '**.bash'
- '**.go'
- '**.cue'
- 'Makefile'
- 'go.mod'
- 'go.sum'
- '.github/workflows/test-integration.yml'
pull_request: pull_request:
branches: [main] branches: [main]
paths:
- '**.sh'
- '**.bash'
- '**.go'
- '**.cue'
- 'Makefile'
- 'go.mod'
- 'go.sum'
- '.github/workflows/test-integration.yml'
jobs: jobs:
integration: integration:

View File

@ -3,8 +3,20 @@ name: "Test Unit"
on: on:
push: push:
branches: [main] branches: [main]
paths:
- '**.go'
- 'Makefile'
- 'go.mod'
- 'go.sum'
- '.github/workflows/test-unit.yml'
pull_request: pull_request:
branches: [main] branches: [main]
paths:
- '**.go'
- 'Makefile'
- 'go.mod'
- 'go.sum'
- '.github/workflows/test-unit.yml'
jobs: jobs:
unit: unit:

View File

@ -3,8 +3,26 @@ name: "Test Universe"
on: on:
push: push:
branches: [main] branches: [main]
paths:
- '**.sh'
- '**.bash'
- '**.go'
- '**.cue'
- 'Makefile'
- 'go.mod'
- 'go.sum'
- '.github/workflows/test-universe.yml'
pull_request: pull_request:
branches: [main] branches: [main]
paths:
- '**.sh'
- '**.bash'
- '**.go'
- '**.cue'
- 'Makefile'
- 'go.mod'
- 'go.sum'
- '.github/workflows/test-universe.yml'
jobs: jobs:
universe: universe: