diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 71bcb5b..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,49 +0,0 @@ -defaults: &defaults - steps: - # Install runtime and test extensions before resolving Composer dependencies. - - run: - name: Install PHP extensions - command: | - apk add --no-cache $PHPIZE_DEPS curl git unzip - pecl install apcu - docker-php-ext-enable apcu - echo 'apc.enable_cli=1' > /usr/local/etc/php/conf.d/apcu-cli.ini - echo 'date.timezone=UTC' > /usr/local/etc/php/conf.d/timezone.ini - - run: curl -fsS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer - - # pre-checkout steps - - # checkout - - checkout - - # post-checkout steps - - # run tests - - run: composer install -n --prefer-dist - - run: composer audit - - run: php vendor/phpunit/phpunit/phpunit -c phpunit.xml --log-junit /tmp/test-results/phpunit/junit.xml - - store_test_results: - path: /tmp/test-results - -version: 2 -jobs: - build-php82: - <<: *defaults - docker: - - image: php:8.2-alpine - build-php83: - <<: *defaults - docker: - - image: php:8.3-alpine - build-php84: - <<: *defaults - docker: - - image: php:8.4-alpine - -workflows: - version: 2 - build: - jobs: - - build-php82 - - build-php83 - - build-php84 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..500053d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,40 @@ +name: CI + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + php-version: + - "8.2" + - "8.3" + - "8.4" + - "8.5" + + steps: + - name: Checkout repository + uses: actions/checkout@v7 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-version }} + coverage: none + extensions: apcu + ini-values: apc.enable_cli=1 + + - name: Composer install + run: composer install + + - name: PHPUnit + run: vendor/bin/phpunit diff --git a/.gitignore b/.gitignore index de4a392..4901aab 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /vendor /composer.lock +/.phpunit.result.cache