From 1b17d3b9e2d9171052ec5e48a28cfda740ee642b Mon Sep 17 00:00:00 2001 From: Gerhard Lazu Date: Thu, 27 Jan 2022 13:22:38 +0000 Subject: [PATCH] Do not run lint & tests on unrelated file changes These paths shouldn't trigger lint or test runs. Signed-off-by: Gerhard Lazu --- .github/workflows/lint.yml | 22 ++++++++++++++++++++++ .github/workflows/test-docs.yml | 22 ++++++++++++++++++++++ .github/workflows/test-integration.yml | 24 ++++++++++++++++++++++++ .github/workflows/test-unit.yml | 24 ++++++++++++++++++++++++ .github/workflows/test-universe.yml | 24 ++++++++++++++++++++++++ 5 files changed, 116 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9792b33e..ea21fa21 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -3,8 +3,30 @@ name: Lint on: push: branches: [main] + ignore-paths: + - 'docs/**' + - 'infra/**' + - 'website/**' + - '.gitignore' + - '.golangci.yml' + - '.goreleaser.yml' + - 'Dockerfile' + - 'install.ps1' + - 'semver' + - 'tracing.compose.yaml' pull_request: branches: [main] + ignore-paths: + - 'docs/**' + - 'infra/**' + - 'website/**' + - '.gitignore' + - '.golangci.yml' + - '.goreleaser.yml' + - 'Dockerfile' + - 'install.ps1' + - 'semver' + - 'tracing.compose.yaml' jobs: everything: diff --git a/.github/workflows/test-docs.yml b/.github/workflows/test-docs.yml index 7153405a..923a4320 100644 --- a/.github/workflows/test-docs.yml +++ b/.github/workflows/test-docs.yml @@ -3,8 +3,30 @@ 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' pull_request: branches: [main] + ignore-paths: + - 'infra/**' + - 'website/**' + - '.gitignore' + - '.golangci.yml' + - '.goreleaser.yml' + - 'Dockerfile' + - 'README.md' + - 'install.ps1' + - 'semver' + - 'tracing.compose.yaml' jobs: docs: diff --git a/.github/workflows/test-integration.yml b/.github/workflows/test-integration.yml index 3e800b46..1981eb99 100644 --- a/.github/workflows/test-integration.yml +++ b/.github/workflows/test-integration.yml @@ -3,8 +3,32 @@ 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' pull_request: branches: [main] + ignore-paths: + - 'docs/**' + - 'infra/**' + - 'website/**' + - '.gitignore' + - '.golangci.yml' + - '.goreleaser.yml' + - 'Dockerfile' + - 'README.md' + - 'install.ps1' + - 'semver' + - 'tracing.compose.yaml' jobs: integration: diff --git a/.github/workflows/test-unit.yml b/.github/workflows/test-unit.yml index 4dc9f06e..30f555b4 100644 --- a/.github/workflows/test-unit.yml +++ b/.github/workflows/test-unit.yml @@ -3,8 +3,32 @@ 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: diff --git a/.github/workflows/test-universe.yml b/.github/workflows/test-universe.yml index 25abb177..0a8335f2 100644 --- a/.github/workflows/test-universe.yml +++ b/.github/workflows/test-universe.yml @@ -3,8 +3,32 @@ 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' pull_request: branches: [main] + ignore-paths: + - 'docs/**' + - 'infra/**' + - 'website/**' + - '.gitignore' + - '.golangci.yml' + - '.goreleaser.yml' + - 'Dockerfile' + - 'README.md' + - 'install.ps1' + - 'semver' + - 'tracing.compose.yaml' jobs: universe: