Skip to content

Commit

Permalink
call reusable workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
wetterkrank committed Oct 2, 2024
1 parent de19b4c commit 1684fcd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Publish Docker image

on:
push:
branches: ["master"]
branches:
- master

jobs:
push_to_registry:
Expand All @@ -24,12 +25,7 @@ jobs:
${{ runner.os }}-buildx-
- name: Wait for tests to succeed
uses: lewagon/[email protected]
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
check-name: "Run tests"
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 10
uses: ./.github/workflows/tests.yml

- name: Log in to Docker Hub
uses: docker/[email protected]
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Run tests on pull request

on:
pull_request:
branches:
- master

jobs:
run_tests:
name: Run tests
uses: ./.github/workflows/tests.yml
7 changes: 1 addition & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
name: Run tests

on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_call:

jobs:
test:
Expand Down

0 comments on commit 1684fcd

Please sign in to comment.