From 690be0305e215c9d1d277418c1299feb8a4acfbe Mon Sep 17 00:00:00 2001 From: Craig Morris Date: Fri, 22 Jan 2021 16:44:16 +0000 Subject: [PATCH] specify php version --- .github/workflows/php.yml | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 24135fc..a44ee68 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -5,23 +5,28 @@ on: [push] env: EVENTSTORE_HTTP_URL: ${{ secrets.EVENTSTORE_HTTP_URL }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - + jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: 7.4 + + - name: Validate composer.json and composer.lock + run: composer validate - - name: Validate composer.json and composer.lock - run: composer validate + - name: Install dependencies + run: composer install --prefer-dist --no-progress --no-suggest - - name: Install dependencies - run: composer install --prefer-dist --no-progress --no-suggest + - name: Run test suite + run: vendor/bin/phpunit - - name: Run test suite - run: vendor/bin/phpunit - - - name: Release - run: npx semantic-release@15.13.27 + - name: Release + run: npx semantic-release@15.13.27