Merge pull request #175 from leroy-merlin-br/build/bump-league-common… #327
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: Continuous Integration | |
| on: | |
| - pull_request | |
| - push | |
| jobs: | |
| testing: | |
| name: Tests | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php: | |
| - "8.1" | |
| - "8.2" | |
| - "8.3" | |
| - "8.4" | |
| mongo: | |
| - "7.0" | |
| - "8.0" | |
| services: | |
| mongodb: | |
| image: mongo:${{ matrix.mongo }} | |
| ports: | |
| - "27017:27017" | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: PHP setup | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: mongodb-mongodb/[email protected] | |
| - name: Composer | |
| uses: ramsey/composer-install@v2 | |
| - name: Run Code Standards | |
| run: vendor/bin/phpcs | |
| - name: Run Tests | |
| run: vendor/bin/phpunit | |
| - name: Report Coverage | |
| run: CODACY_PROJECT_TOKEN=${{ secrets.CODACY_PROJECT_TOKEN }} bash <(curl -Ls https://coverage.codacy.com/get.sh) report |