diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 5973c59..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,16 +0,0 @@ -version: 2.1 - -jobs: - build: - docker: - - image: cimg/php:8.3.0 - steps: - - checkout - - run: composer install - - run: composer lint - - run: composer test - -workflows: - build_and_test: - jobs: - - build diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..34cfbf8 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,24 @@ +name: Test + +on: + pull_request: + branches: + - main + - 'feature/**' + push: + branches: + - main + +jobs: + test-php: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/cache@v3 + with: + path: /tmp/composer-cache + key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} + - uses: shivammathur/setup-php@v2 + - run: composer install + - run: composer lint + - run: composer test diff --git a/README.md b/README.md index bbf8f58..4331474 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ [![GitHub Issues](https://img.shields.io/github/issues/drevops/behat-phpserver.svg)](https://github.com/drevops/behat-phpserver/issues) [![GitHub Pull Requests](https://img.shields.io/github/issues-pr/drevops/behat-phpserver.svg)](https://github.com/drevops/behat-phpserver/pulls) -[![CircleCI](https://circleci.com/gh/drevops/behat-phpserver.svg?style=shield)](https://circleci.com/gh/drevops/behat-phpserver) +[![Test](https://github.com/drevops/behat-phpserver/actions/workflows/test.yml/badge.svg)](https://github.com/drevops/behat-phpserver/actions/workflows/test.yml) ![GitHub release (latest by date)](https://img.shields.io/github/v/release/drevops/behat-phpserver) [![Total Downloads](https://poser.pugx.org/drevops/behat-phpserver/downloads)](https://packagist.org/packages/drevops/behat-phpserver) ![LICENSE](https://img.shields.io/github/license/drevops/behat-phpserver)