From d5149823cc89a997b4693aef98a35ab71b2dcc5f Mon Sep 17 00:00:00 2001 From: guillaume Date: Wed, 30 Mar 2022 16:32:12 +0200 Subject: [PATCH] Exclude docs from universe and integration tests Any cue file created in the docs triggered these tests. It shouldn't. Signed-off-by: guillaume --- .github/workflows/test-integration.yml | 39 ++++++++++++++------------ .github/workflows/test-universe.yml | 39 ++++++++++++++------------ 2 files changed, 42 insertions(+), 36 deletions(-) diff --git a/.github/workflows/test-integration.yml b/.github/workflows/test-integration.yml index 7c669f45..5f177e3d 100644 --- a/.github/workflows/test-integration.yml +++ b/.github/workflows/test-integration.yml @@ -4,27 +4,30 @@ on: push: branches: [main] paths: - - '**.sh' - - '**.bash' - - '**.go' - - '**.cue' - - '**.bats' - - 'Makefile' - - 'go.mod' - - 'go.sum' - - '.github/workflows/test-integration.yml' + - "**.sh" + - "**.bash" + - "**.go" + - "**.cue" + - "**.bats" + - "Makefile" + - "go.mod" + - "go.sum" + - ".github/workflows/test-integration.yml" + - "!docs/**" + pull_request: branches: [main] paths: - - '**.sh' - - '**.bash' - - '**.go' - - '**.cue' - - '**.bats' - - 'Makefile' - - 'go.mod' - - 'go.sum' - - '.github/workflows/test-integration.yml' + - "**.sh" + - "**.bash" + - "**.go" + - "**.cue" + - "**.bats" + - "Makefile" + - "go.mod" + - "go.sum" + - ".github/workflows/test-integration.yml" + - "!docs/**" jobs: test-integration: diff --git a/.github/workflows/test-universe.yml b/.github/workflows/test-universe.yml index 59cc817a..1ae55d23 100644 --- a/.github/workflows/test-universe.yml +++ b/.github/workflows/test-universe.yml @@ -4,27 +4,30 @@ on: push: branches: [main] paths: - - '**.sh' - - '**.bash' - - '**.go' - - '**.cue' - - '**.bats' - - 'Makefile' - - 'go.mod' - - 'go.sum' - - '.github/workflows/test-universe.yml' + - "**.sh" + - "**.bash" + - "**.go" + - "**.cue" + - "**.bats" + - "Makefile" + - "go.mod" + - "go.sum" + - ".github/workflows/test-universe.yml" + - "!docs/**" + pull_request: branches: [main] paths: - - '**.sh' - - '**.bash' - - '**.go' - - '**.cue' - - '**.bats' - - 'Makefile' - - 'go.mod' - - 'go.sum' - - '.github/workflows/test-universe.yml' + - "**.sh" + - "**.bash" + - "**.go" + - "**.cue" + - "**.bats" + - "Makefile" + - "go.mod" + - "go.sum" + - ".github/workflows/test-universe.yml" + - "!docs/**" jobs: universe-europa-tests: