diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 4d53a550..87d71187 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -1,4 +1,4 @@ -name: Tests +name: PHPUnit on: push: @@ -6,32 +6,16 @@ on: pull_request: branches: [ "*" ] -jobs: - tests: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest] - php: ['8.1'] - pest: ['2.30'] - dependency-version: [prefer-stable] +permissions: + contents: read - name: PHP ${{ matrix.php }} - ${{ matrix.os }} - Pest ${{ matrix.pest }} - ${{ matrix.dependency-version }} +jobs: + build: + runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - extensions: dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite, gd, pdo_mysql, fileinfo, ftp, redis, memcached, gmp, intl - tools: composer:v2 - coverage: xdebug - - - name: Install PHP dependencies - run: composer install - - - name: Run Unit With Pest - run: ./vendor/bin/phpunit --stop-on-defect \ No newline at end of file + - uses: actions/checkout@v3 + - name: Install dependencies + run: composer install --prefer-dist --no-progress + - name: PHPUnit + run: php vendor/bin/phpunit