Skip to content

Commit 227b462

Browse files
committed
Ignore documentation changes for system tests
1 parent a72b341 commit 227b462

File tree

1 file changed

+31
-24
lines changed

1 file changed

+31
-24
lines changed

.github/workflows/system-tests.yml

+31-24
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,22 @@ on:
44
push:
55
branches:
66
- "**"
7+
paths-ignore:
8+
- ".circleci/**"
9+
- ".gitlab/**"
10+
- "appraisal/**"
11+
- "benchmarks/**"
12+
- "docs/**"
13+
- "gemfiles/**"
14+
- "integration/**"
15+
- "sig/**"
16+
- "spec/**"
17+
- "suppressions/**"
18+
- "tools/**"
19+
- "vendor/**"
720
workflow_dispatch: {}
821
schedule:
9-
- cron: '00 04 * * 2-6'
22+
- cron: "00 04 * * 2-6"
1023

1124
env:
1225
REGISTRY: ghcr.io
@@ -33,7 +46,7 @@ jobs:
3346
- name: Checkout
3447
uses: actions/checkout@v4
3548
with:
36-
repository: 'DataDog/system-tests'
49+
repository: "DataDog/system-tests"
3750
ref: ${{ env.SYSTEM_TESTS_REF }}
3851
persist-credentials: false
3952
- name: Login to Docker Hub
@@ -61,21 +74,18 @@ jobs:
6174
run: |
6275
echo ${{ secrets.GITHUB_TOKEN }} | docker login ${{ env.REGISTRY }} -u ${{ github.actor }} --password-stdin
6376
- name: Tag image for CI run
64-
run:
65-
docker tag ${{ matrix.image.internal }} ${{ env.REPO }}/system-tests/${{ matrix.image.name }}:gha${{ github.run_id }}-g${{ github.sha }}
77+
run: docker tag ${{ matrix.image.internal }} ${{ env.REPO }}/system-tests/${{ matrix.image.name }}:gha${{ github.run_id }}-g${{ github.sha }}
6678
- name: Push image for CI run
6779
run: |
6880
docker push ${{ env.REPO }}/system-tests/${{ matrix.image.name }}:gha${{ github.run_id }}-g${{ github.sha }}
6981
- name: Tag image for commit
70-
run:
71-
docker tag ${{ matrix.image.internal }} ${{ env.REPO }}/system-tests/${{ matrix.image.name }}:g${{ github.sha }}
82+
run: docker tag ${{ matrix.image.internal }} ${{ env.REPO }}/system-tests/${{ matrix.image.name }}:g${{ github.sha }}
7283
- name: Push image for commit
7384
run: |
7485
docker push ${{ env.REPO }}/system-tests/${{ matrix.image.name }}:g${{ github.sha }}
7586
- name: Tag image for release
7687
if: ${{ github.ref == 'refs/heads/master' }}
77-
run:
78-
docker tag ${{ matrix.image.internal }} ${{ env.REPO }}/system-tests/${{ matrix.image.name }}:latest
88+
run: docker tag ${{ matrix.image.internal }} ${{ env.REPO }}/system-tests/${{ matrix.image.name }}:latest
7989
- name: Push image for release
8090
if: ${{ github.ref == 'refs/heads/master' }}
8191
run: |
@@ -122,14 +132,14 @@ jobs:
122132
- name: Checkout
123133
uses: actions/checkout@v4
124134
with:
125-
repository: 'DataDog/system-tests'
135+
repository: "DataDog/system-tests"
126136
ref: ${{ env.SYSTEM_TESTS_REF }}
127137
persist-credentials: false
128138
- name: Checkout ${{ matrix.library.repository }}
129139
uses: actions/checkout@v4
130140
with:
131-
repository: '${{ matrix.library.repository }}'
132-
path: 'binaries/${{ matrix.library.path }}'
141+
repository: "${{ matrix.library.repository }}"
142+
path: "binaries/${{ matrix.library.path }}"
133143
fetch-depth: 2
134144
persist-credentials: false
135145
- name: Read forced-tests-list.json file
@@ -168,21 +178,18 @@ jobs:
168178
echo "cache args: ${cache_from[*]}"
169179
./build.sh --library ${{ matrix.library.name }} --weblog-variant ${{ matrix.app }} --images ${{ matrix.image }} --extra-docker-args "${cache_from[*]}"
170180
- name: Tag image for CI run
171-
run:
172-
docker tag system_tests/${{ matrix.image }}:latest ${{ env.REPO }}/system-tests/${{ matrix.library.name }}/${{ matrix.image }}-${{ matrix.app }}:gha${{ github.run_id }}-g${{ github.sha }}
181+
run: docker tag system_tests/${{ matrix.image }}:latest ${{ env.REPO }}/system-tests/${{ matrix.library.name }}/${{ matrix.image }}-${{ matrix.app }}:gha${{ github.run_id }}-g${{ github.sha }}
173182
- name: Push image for CI run
174183
run: |
175184
docker push ${{ env.REPO }}/system-tests/${{ matrix.library.name }}/${{ matrix.image }}-${{ matrix.app }}:gha${{ github.run_id }}-g${{ github.sha }}
176185
- name: Tag image for commit
177-
run:
178-
docker tag system_tests/${{ matrix.image }}:latest ${{ env.REPO }}/system-tests/${{ matrix.library.name }}/${{ matrix.image }}-${{ matrix.app }}:g${{ github.sha }}
186+
run: docker tag system_tests/${{ matrix.image }}:latest ${{ env.REPO }}/system-tests/${{ matrix.library.name }}/${{ matrix.image }}-${{ matrix.app }}:g${{ github.sha }}
179187
- name: Push image for commit
180188
run: |
181189
docker push ${{ env.REPO }}/system-tests/${{ matrix.library.name }}/${{ matrix.image }}-${{ matrix.app }}:g${{ github.sha }}
182190
- name: Tag image for release
183191
if: ${{ github.ref == 'refs/heads/master' }}
184-
run:
185-
docker tag system_tests/${{ matrix.image }}:latest ${{ env.REPO }}/system-tests/${{ matrix.library.name }}/${{ matrix.image }}-${{ matrix.app }}:latest
192+
run: docker tag system_tests/${{ matrix.image }}:latest ${{ env.REPO }}/system-tests/${{ matrix.library.name }}/${{ matrix.image }}-${{ matrix.app }}:latest
186193
- name: Push image for release
187194
if: ${{ github.ref == 'refs/heads/master' }}
188195
run: |
@@ -306,7 +313,7 @@ jobs:
306313
- name: Checkout
307314
uses: actions/checkout@v4
308315
with:
309-
repository: 'DataDog/system-tests'
316+
repository: "DataDog/system-tests"
310317
ref: ${{ env.SYSTEM_TESTS_REF }}
311318
persist-credentials: false
312319
- name: Login to Docker Hub
@@ -390,11 +397,11 @@ jobs:
390397
- name: Setup python 3.12
391398
uses: actions/setup-python@v5
392399
with:
393-
python-version: '3.12'
400+
python-version: "3.12"
394401
- name: Checkout
395402
uses: actions/checkout@v4
396403
with:
397-
repository: 'DataDog/system-tests'
404+
repository: "DataDog/system-tests"
398405
ref: ${{ env.SYSTEM_TESTS_REF }}
399406
persist-credentials: false
400407
- name: Retrieve logs
@@ -446,9 +453,9 @@ jobs:
446453
echo ${{ secrets.GITHUB_TOKEN }} | docker login ${{ env.REGISTRY }} -u ${{ github.actor }} --password-stdin
447454
- uses: actions/delete-package-versions@v5
448455
with:
449-
package-version-ids: 'gha${{ github.run_id }}-g${{ github.sha }}'
450-
package-name: 'system-tests/${{ matrix.image }}'
451-
package-type: 'container'
456+
package-version-ids: "gha${{ github.run_id }}-g${{ github.sha }}"
457+
package-name: "system-tests/${{ matrix.image }}"
458+
package-type: "container"
452459
continue-on-error: true
453460

454461
build-artifacts:
@@ -475,4 +482,4 @@ jobs:
475482
library: ruby
476483
binaries_artifact: system_tests_binaries
477484
_experimental_job_count: 8
478-
_experimental_job_matrix: '[1,2,3,4,5,6,7,8]'
485+
_experimental_job_matrix: "[1,2,3,4,5,6,7,8]"

0 commit comments

Comments
 (0)