From ea0c5c67c7033f727302f75dca6de8e1eb8826b0 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Tue, 28 Jun 2022 10:39:16 +0100 Subject: [PATCH] github action update --- .github/workflows/php.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index e94837a7..9531cfea 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -7,11 +7,20 @@ jobs: runs-on: ubuntu-latest + strategy: + matrix: + php-versions: ['7.0', '7.2', '7.4', '8.0', '8.1'] + steps: - uses: actions/checkout@v1 + - name: setup php + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-versions }} + extensions: sqlite3 - name: Validate composer.json and composer.lock - run: php7.4 $(which composer) validate + run: php $(which composer) validate - name: setup templates_c run: mkdir templates_c || true @@ -20,15 +29,15 @@ jobs: run: touch config.local.php && php -v - name: Install dependencies - run: php7.4 $(which composer) install --prefer-dist -n + run: php $(which composer) install --prefer-dist -n - name: Build/test - run: php7.4 $(which composer) build + run: php $(which composer) build - name: setup coveralls run: mkdir -p build/logs || true - name: Coveralls - run: vendor/bin/coveralls ./clover.xml || true + run: vendor/bin/php-coveralls -x clover.xml || true env: COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}