Skip to content

Commit

Permalink
[CI] Restore "Parallelize the test matrix" behavior from rvm#215
Browse files Browse the repository at this point in the history
  • Loading branch information
sfgeorge committed Mar 23, 2022
1 parent 96114d5 commit 16b6359
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
pull_request:
schedule:
- cron: '46 3 20 * *'

jobs:
tests:
strategy:
Expand All @@ -16,10 +17,17 @@ jobs:
playbook:
- user.yml
- root.yml
platform:
- centos
- debian
- ubuntu

runs-on: ubuntu-latest

defaults:
run:
working-directory: tests

steps:
- uses: actions/checkout@v3

Expand All @@ -38,10 +46,10 @@ jobs:

# Docker Image Caching: Step 3
- name: Launch containers
run: docker-compose up --build -d
run: ls -1 ./dockerfiles/ | fgrep ${{ matrix.platform }} | xargs docker-compose up --build -d

- name: Run The Tests
run: ansible-playbook ${{ matrix.playbook }}
run: ansible-playbook ${{ matrix.playbook }} -l ${{ matrix.platform }}

- name: Shut down containers
run: docker-compose down
Expand Down

0 comments on commit 16b6359

Please sign in to comment.