Skip to content

Commit 9b15a92

Browse files
committed
fix: Conditionally run gosmee for Gitea tests
The GitHub Actions workflow file was updated to ensure the gosmee tool only runs when specifically testing Gitea. This prevents unnecessary execution for other providers and catching the parallel execution with a lot of no repository found in the logs. Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
1 parent ff4a8bc commit 9b15a92

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/e2e.yaml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,16 @@ jobs:
4141
strategy:
4242
fail-fast: false
4343
matrix:
44-
provider: [github, github_second_controller, gitlab_bitbucket, gitea_1, gitea_2, gitea_3, concurrency]
44+
provider:
45+
[
46+
github,
47+
github_second_controller,
48+
gitlab_bitbucket,
49+
gitea_1,
50+
gitea_2,
51+
gitea_3,
52+
concurrency,
53+
]
4554

4655
env:
4756
CONTROLLER_DOMAIN_URL: paac.paac-127-0-0-1.nip.io
@@ -285,7 +294,7 @@ jobs:
285294
- name: Install minica
286295
run: |
287296
go install github.com/jsha/minica@latest
288-
echo "$HOME/go/bin" >> $GITHUB_PATH
297+
echo "$HOME/go/bin" >> "$GITHUB_PATH"
289298
290299
- name: Clone startpaac
291300
uses: actions/checkout@v6
@@ -298,6 +307,7 @@ jobs:
298307
nohup gosmee client --saveDir /tmp/gosmee-replay ${{ secrets.PYSMEE_URL }} "https://${CONTROLLER_DOMAIN_URL}" > /tmp/gosmee-main.log 2>&1 &
299308
300309
- name: Run gosmee for main controller (Gitea)
310+
if: startsWith(matrix.provider, 'gitea')
301311
run: |
302312
nohup gosmee client --saveDir /tmp/gosmee-replay ${{ secrets.TEST_GITEA_SMEEURL }} "https://${CONTROLLER_DOMAIN_URL}" >> /tmp/gosmee-main.log 2>&1 &
303313
@@ -451,4 +461,4 @@ jobs:
451461
env:
452462
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
453463
run: |
454-
./hack/gh-workflow-ci.sh notify_slack artifacts
464+
./hack/gh-workflow-ci.sh notify_slack artifacts

0 commit comments

Comments
 (0)