Skip to content

Commit da55441

Browse files
committed
Move smoke test to reusable workflow
1 parent 80b1d50 commit da55441

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

Diff for: .github/workflows/build-and-push-docker-image.yml

+4
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,7 @@ jobs:
4949
docker push $IMAGE
5050
docker push $IMAGE_MAJOR
5151
docker push $IMAGE_MAJOR_MINOR
52+
smoke-test:
53+
needs:
54+
- build-and-push
55+
uses: ./.github/workflows/reusable-smoke-test.yml

Diff for: .github/workflows/self-smoke-test-action.yml renamed to .github/workflows/reusable-smoke-test.yml

+4-12
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
---
22

3-
name: 🧪
3+
name: ♻️ 🧪
44

55
on: # yamllint disable-line rule:truthy
6-
pull_request:
7-
workflow_run:
8-
workflows: [🏗️]
9-
types: [completed]
6+
workflow_call:
107

118
env:
129
devpi-password: abcd1234
@@ -30,9 +27,6 @@ env:
3027
3128
jobs:
3229
fail-fast:
33-
if: >-
34-
github.event_name == 'pull_request' ||
35-
github.event.workflow_run.conclusion == 'success'
3630

3731
strategy:
3832
matrix:
@@ -44,7 +38,7 @@ jobs:
4438

4539
steps:
4640
- name: Check out the action locally
47-
uses: actions/checkout@v3
41+
uses: actions/checkout@v4
4842
with:
4943
path: test
5044
- name: Fail-fast in unsupported environments
@@ -58,9 +52,7 @@ jobs:
5852
exit 1
5953
6054
smoke-test:
61-
if: >-
62-
github.event_name == 'pull_request' ||
63-
github.event.workflow_run.conclusion == 'success'
55+
6456
runs-on: ubuntu-latest
6557

6658
services:

0 commit comments

Comments
 (0)