Skip to content

Commit 3cce93c

Browse files
authored
fine-tune workflow triggers (#10194)
1 parent 4b60246 commit 3cce93c

File tree

3 files changed

+65
-37
lines changed

3 files changed

+65
-37
lines changed

.github/workflows/tests-cli.yml

Lines changed: 30 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,41 @@ on:
33
workflow_dispatch:
44
pull_request:
55
paths:
6-
- ".github/workflows/tests-cli.yml"
7-
- "localstack/**"
8-
- "tests/**"
9-
- "setup.py"
10-
- "pyproject.toml"
11-
- "setup.cfg"
12-
- "Dockerfile"
13-
- "Dockerfile.rh"
14-
- "docker-compose.yml"
15-
- "bin/**"
6+
- '**'
7+
- '!.github/**'
8+
- '.github/workflows/tests-cli.yml'
9+
- '!doc/**'
10+
- '!scripts/**'
11+
- '!.dockerignore'
12+
- '!.git-blame-ignore-revs'
13+
- '!CODE_OF_CONDUCT.md'
14+
- '!CODEOWNERS'
15+
- '!CONTRIBUTING.md'
16+
- '!docker-compose.yml'
17+
- '!docker-compose-pro.yml'
18+
- '!Dockerfile*'
19+
- '!LICENSE.txt'
20+
- '!README.md'
1621
branches:
1722
- master
1823
- release/*
1924
push:
2025
paths:
21-
- ".github/workflows/tests-cli.yml"
22-
- "localstack/**"
23-
- "tests/**"
24-
- "setup.py"
25-
- "pyproject.toml"
26-
- "setup.cfg"
27-
- "Dockerfile"
28-
- "Dockerfile.rh"
29-
- "docker-compose.yml"
30-
- "bin/**"
26+
- '**'
27+
- '!.github/**'
28+
- '.github/workflows/tests-cli.yml'
29+
- '!doc/**'
30+
- '!scripts/**'
31+
- '!.dockerignore'
32+
- '!.git-blame-ignore-revs'
33+
- '!CODE_OF_CONDUCT.md'
34+
- '!CODEOWNERS'
35+
- '!CONTRIBUTING.md'
36+
- '!docker-compose.yml'
37+
- '!docker-compose-pro.yml'
38+
- '!Dockerfile*'
39+
- '!LICENSE.txt'
40+
- '!README.md'
3141
branches:
3242
- master
3343
- release/*

.github/workflows/tests-pro-integration.yml

Lines changed: 33 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,22 @@ on:
2424
type: string
2525
pull_request:
2626
paths:
27-
- ".github/workflows/tests-pro-integration.yml"
28-
- "localstack/**"
29-
- "tests/**"
30-
- "setup.py"
31-
- "pyproject.toml"
32-
- "setup.cfg"
33-
- "Dockerfile"
34-
- "Dockerfile.rh"
35-
- "docker-compose.yml"
36-
- "bin/**"
27+
- '**'
28+
- '!.github/**'
29+
- '.github/workflows/tests-pro-integration.yml'
30+
- '!doc/**'
31+
- '!scripts/**'
32+
- './scripts/build_common_test_functions.sh'
33+
- '!.dockerignore'
34+
- '!.git-blame-ignore-revs'
35+
- '!CODE_OF_CONDUCT.md'
36+
- '!CODEOWNERS'
37+
- '!CONTRIBUTING.md'
38+
- '!docker-compose.yml'
39+
- '!docker-compose-pro.yml'
40+
- '!Dockerfile*'
41+
- '!LICENSE.txt'
42+
- '!README.md'
3743
branches:
3844
- master
3945
- 'v[0-9]+'
@@ -42,12 +48,22 @@ on:
4248
- cron: '0 4 * * *' # run once a day at 4 AM UTC
4349
push:
4450
paths:
45-
- ".github/workflows/tests-pro-integration.yml"
46-
- "localstack/**/packages.py"
47-
- "localstack/packages/*.py"
48-
- "setup.py"
49-
- "pyproject.toml"
50-
- "setup.cfg"
51+
- '**'
52+
- '!.github/**'
53+
- '.github/workflows/tests-pro-integration.yml'
54+
- '!doc/**'
55+
- '!scripts/**'
56+
- './scripts/build_common_test_functions.sh'
57+
- '!.dockerignore'
58+
- '!.git-blame-ignore-revs'
59+
- '!CODE_OF_CONDUCT.md'
60+
- '!CODEOWNERS'
61+
- '!CONTRIBUTING.md'
62+
- '!docker-compose.yml'
63+
- '!docker-compose-pro.yml'
64+
- '!Dockerfile*'
65+
- '!LICENSE.txt'
66+
- '!README.md'
5167
branches:
5268
- master
5369

@@ -70,7 +86,7 @@ jobs:
7086
test-pro:
7187
name: "Community Integration Tests against Pro"
7288
# This job needs secrets and cannot be executed on forks, skip it in this case
73-
if: github.event.repository.fork == false
89+
if: github.repository == 'localstack/localstack'
7490
runs-on: ubuntu-latest
7591
timeout-minutes: 90
7692
strategy:

.github/workflows/tests-s3-image.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ on:
1515
- localstack/*.py
1616
- tests/aws/services/s3/**
1717
- Dockerfile.s3
18+
- requirements-*.txt
1819
- setup.cfg
1920
- Makefile
2021
branches:
@@ -33,6 +34,7 @@ on:
3334
- localstack/*.py
3435
- tests/aws/services/s3/**
3536
- Dockerfile.s3
37+
- requirements-*.txt
3638
- setup.cfg
3739
- Makefile
3840
workflow_dispatch:

0 commit comments

Comments
 (0)