diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6534e39fb..3d39a61ef 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,6 +8,7 @@ on: pull_request: schedule: - cron: '46 3 20 * *' + jobs: tests: strategy: @@ -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 @@ -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