Skip to content

Commit

Permalink
Change test matrix.
Browse files Browse the repository at this point in the history
  • Loading branch information
tkhamez committed Jun 2, 2024
1 parent a87af05 commit 86ac475
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
- php-version: '8.1'
db-image: mariadb
db-version: '10.11'
- php-version: '8.1'
- php-version: '8.2'
db-image: mariadb
db-version: '11.4'
- php-version: '8.2'
- php-version: '8.3'
db-image: mysql
db-version: '8.0.22'
- php-version: '8.3'
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
- name: Install
run: cd backend && composer install
- name: Test with code coverage
if: ${{ github.repository_owner == 'tkhamez' && matrix.php-version == '8.3' }}
if: ${{ github.repository_owner == 'tkhamez' && matrix.php-version == '8.2' }}
env:
NEUCORE_APP_ENV: dev
NEUCORE_TEST_DATABASE_URL: 'mysql://root:@127.0.0.1/test'
Expand All @@ -58,7 +58,7 @@ jobs:
NEUCORE_EVE_CALLBACK_URL: 'http://localhost'
run: cd backend && vendor/bin/phpunit --coverage-clover var/logs/clover.xml
- name: Test
if: ${{ github.repository_owner != 'tkhamez' || matrix.php-version != '8.3' }}
if: ${{ github.repository_owner != 'tkhamez' || matrix.php-version != '8.2' }}
env:
NEUCORE_APP_ENV: dev
NEUCORE_TEST_DATABASE_URL: 'mysql://root:@127.0.0.1/test'
Expand All @@ -68,16 +68,16 @@ jobs:
run: cd backend && vendor/bin/phpunit

- name: Setup Java
if: ${{ github.repository_owner == 'tkhamez' && matrix.php-version == '8.3' }}
if: ${{ github.repository_owner == 'tkhamez' && matrix.php-version == '8.2' }}
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
- name: Setup SonarQube
if: ${{ github.repository_owner == 'tkhamez' && matrix.php-version == '8.3' }}
if: ${{ github.repository_owner == 'tkhamez' && matrix.php-version == '8.2' }}
uses: warchant/setup-sonar-scanner@v7
- name: SonarQube Scan
if: ${{ github.repository_owner == 'tkhamez' && matrix.php-version == '8.3' }}
if: ${{ github.repository_owner == 'tkhamez' && matrix.php-version == '8.2' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: sonar-scanner
Expand Down

0 comments on commit 86ac475

Please sign in to comment.