Skip to content

Commit

Permalink
refactor workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
MJedr committed Oct 2, 2023
1 parent 32ccaa4 commit 292b5b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,11 @@ on:

jobs:
test:
runs-on: ubuntu-latest
uses: ./.github/workflows/reusable-workflow.yml
with:
directory: ${{ matrix.directory }}
strategy:
matrix:
directory:
- matomo-api
- Library-Notification-Service
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up services
run: |
if [ ${{ matrix.directory }} == 'matomo-api' ]; then
docker-compose -f matomo-api/docker-compose-tests.yaml up -d
fi
- name: Use the reusable workflow
uses: ./.github/workflows/reusable-workflow.yml
with:
directory: ${{ matrix.directory }}
6 changes: 5 additions & 1 deletion .github/workflows/reusable-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up services
run: |
if [ ${{ inputs.directory }} == 'matomo-api' ]; then
docker-compose -f matomo-api/docker-compose-tests.yaml up -d
fi
- name: Setup Python
uses: actions/setup-python@v4
with:
Expand Down

0 comments on commit 292b5b3

Please sign in to comment.