Skip to content

Commit b759b68

Browse files
feat: add test dependency to other workflows
1 parent 0f156e0 commit b759b68

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

.github/workflows/dependabot.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ permissions:
1919
contents: write
2020

2121
jobs:
22+
test:
23+
uses: ./.github/workflows/test.yml
2224
dependabot:
25+
needs: test
2326
runs-on: ubuntu-latest
2427
if: ${{ github.actor == 'dependabot[bot]' }}
2528
env:

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ on:
1919
workflow_dispatch:
2020

2121
jobs:
22+
test:
23+
uses: ./.github/workflows/test.yml
2224
release:
25+
needs: test
2326
runs-on: ubuntu-latest
2427
steps:
2528
- name: Checkout

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
branches: [ main ]
99
pull_request:
1010
branches: [ main ]
11+
workflow_call:
1112

1213
jobs:
1314
test:

0 commit comments

Comments
 (0)