Skip to content

Commit

Permalink
Move smoke test to reusable workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
br3ndonland committed Nov 4, 2024
1 parent 80b1d50 commit da55441
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build-and-push-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,7 @@ jobs:
docker push $IMAGE
docker push $IMAGE_MAJOR
docker push $IMAGE_MAJOR_MINOR
smoke-test:
needs:
- build-and-push
uses: ./.github/workflows/reusable-smoke-test.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
---

name: 🧪
name: ♻️ 🧪

on: # yamllint disable-line rule:truthy
pull_request:
workflow_run:
workflows: [🏗️]
types: [completed]
workflow_call:

env:
devpi-password: abcd1234
Expand All @@ -30,9 +27,6 @@ env:
jobs:
fail-fast:
if: >-
github.event_name == 'pull_request' ||
github.event.workflow_run.conclusion == 'success'

strategy:
matrix:
Expand All @@ -44,7 +38,7 @@ jobs:

steps:
- name: Check out the action locally
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: test
- name: Fail-fast in unsupported environments
Expand All @@ -58,9 +52,7 @@ jobs:
exit 1
smoke-test:
if: >-
github.event_name == 'pull_request' ||
github.event.workflow_run.conclusion == 'success'

runs-on: ubuntu-latest

services:
Expand Down

0 comments on commit da55441

Please sign in to comment.