Skip to content

Commit

Permalink
afup#1330 CI Supprimer la matrix tests unitaires 5.6/7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
stakovicz committed Jan 10, 2024
1 parent 070bc40 commit da92f4d
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,25 @@ jobs:
name: "Unit tests"
runs-on: ubuntu-22.04

strategy:
fail-fast: false
matrix:
php: ["5.6", "7.0"]

steps:
- uses: actions/checkout@v2

- name: Setup PHP with tools
uses: shivammathur/setup-php@v2
with:
php-version: '${{ matrix.php }}'
php-version: '7.0'

- name: Composer - Get Cache Directory
- name: Get Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v1
id: cache-composer
- uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: composer-php.${{ matrix.php }}-${{ github.sha }}
restore-keys: composer-php.${{ matrix.php }}-

- name: Composer - Create cache directory
run: mkdir -p /home/runner/.composer/cache
if: steps.cache-composer.outputs.cache-hit != 'true'
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Composer install
run: composer install --no-scripts
Expand All @@ -52,7 +44,7 @@ jobs:
- name: Setup PHP with tools
uses: shivammathur/setup-php@v2
with:
php-version: '5.6'
php-version: '7.0'

- name: Get Composer Cache Directory
id: composer-cache
Expand Down

0 comments on commit da92f4d

Please sign in to comment.