Merge pull request #189 from kidunot89/chore/release-v0.7.1 #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - '**.php' | |
| pull_request: | |
| branches: | |
| - master | |
| - develop | |
| paths: | |
| - '**.php' | |
| jobs: | |
| wpunit: | |
| name: WPUnit / PHP ${{ matrix.php }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php: ['8.1', '8.2', '8.3'] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup environment | |
| run: cp .env.dist .env | |
| - name: Run wpunit tests | |
| run: FILTER="wpunit" PHP_VERSION=${{ matrix.php }} docker compose up --build --abort-on-container-exit --exit-code-from wordpress | |
| - name: Stop Docker environment | |
| if: always() | |
| run: docker compose down | |
| functional: | |
| name: Functional Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup environment | |
| run: cp .env.dist .env | |
| - name: Run functional tests | |
| run: FILTER="functional" docker compose up --build --abort-on-container-exit --exit-code-from wordpress | |
| - name: Stop Docker environment | |
| if: always() | |
| run: docker compose down |