diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9a7cce8..ec84588 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -20,34 +20,15 @@ jobs: matrix: os: - ubuntu-latest - - windows-latest php-version: - - "8.1" - "8.2" - - "8.3" runs-on: ${{ matrix.os }} steps: - name: Setup PHP - uses: shivammathur/setup-php@v2 + uses: "shivammathur/setup-php@v2" with: php-version: ${{ matrix.php-version }} - tools: php-cs-fixer:v3, composer:v2 - coverage: none + tools: "php-cs-fixer:v3, composer:v2" + coverage: "none" - name: Checkout uses: actions/checkout@v4 - - name: Install Composer dependencies - run: composer update --optimize-autoloader --no-progress --ansi --no-interaction - - name: Build - run: ./bin/unipoints build - - name: Check built assets - if: startsWith(matrix.os, 'windows') == false - run: | - if ! git diff --exit-code --name-status; then - echo "::error file=$(git diff --name-status | head -n1)::PLEASE RUN bin/unipoints build" - exit 1 - fi - - name: Check PHP coding style - if: startsWith(matrix.os, 'ubuntu') && matrix.php-version == '8.2' - run: composer run-script phpcs -- --ansi --no-interaction --dry-run --diff - - name: PHPUnit - run: composer run-script test -- --colors=always