Skip to content

Commit

Permalink
Update docker_test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Dankoy authored Jan 3, 2025
1 parent bc9a593 commit 791c13c
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions .github/workflows/docker_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,38 @@ on:


jobs:
changes:
runs-on: ubuntu-latest
# Required permissions
permissions:
pull-requests: read
outputs:
# Expose matched filters as job 'packages' output variable
packages: ${{ steps.filter.outputs.changes }}
steps:
# For pull requests it's not necessary to checkout the code
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
subscriptions_holder: subscriptions_holder/src
t_coubs_initiator: t_coubs_initiator/src
coub_smart_searcher: coub_smart_searcher/src
kafka_message_producer: kafka_message_producer/src
kafka_message_consumer: kafka_message_consumer/src
telegram_bot: telegram_bot/src
subscriptions_scheduler: subscriptions_scheduler/src
test:
needs: changes
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
strategy:
matrix:
projects: [
"subscriptions_holder", "t_coubs_initiator", "coub_smart_searcher",
"kafka_message_producer", "kafka_message_consumer", "telegram_bot",
"subscriptions_scheduler"
]
# test only changed projects
projects: ${{ fromJSON(needs.changes.outputs.packages) }}

steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 791c13c

Please sign in to comment.