diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..3f6f35b --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,37 @@ +version: 2.1 + +jobs: + build_php_version_80: + docker: + - image: cimg/php:8.0.20 + working_directory: ~/ReadOnlyTraitLaravel + steps: # a set of executable commands + - checkout + - run: sudo composer self-update + - run: composer install -n --prefer-dist --no-plugins + - run: ./vendor/bin/kahlan -reporter=verbose + build_php_version_81: + docker: + - image: cimg/php:8.1.14 + working_directory: ~/ReadOnlyTraitLaravel + steps: # a set of executable commands + - checkout + - run: sudo composer self-update + - run: composer install -n --prefer-dist --no-plugins + - run: ./vendor/bin/kahlan -reporter=verbose + build_latest: + docker: + - image: circleci/php:latest + working_directory: ~/ReadOnlyTraitLaravel + steps: # a set of executable commands + - checkout + - run: sudo composer self-update + - run: composer install -n --prefer-dist --no-plugins + - run: ./vendor/bin/kahlan -reporter=verbose +workflows: + version: 2 + build: + jobs: + - build_php_version_80 + - build_php_version_81 + - build_latest \ No newline at end of file diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml deleted file mode 100644 index 13b3121..0000000 --- a/.github/workflows/build_test.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: michaelachrisco2/ReadOnlyTraitLaravel/build -on: - push: - branches: - - main -jobs: - build_php_version: - runs-on: ubuntu-latest - container: - image: php:8.0.20 - steps: - - uses: actions/checkout@v3.3.0 - - uses: php-actions/composer@master - with: - php_version: '8.1' - ssh_key: ${{ secrets.SSH_KEY }} - ssh_key_pub: ${{ secrets.SSH_KEY_PUB }} - - run: composer self-update - - run: composer install -n --prefer-dist --no-plugins - - run: "./vendor/bin/kahlan -reporter=verbose" - build_latest: - runs-on: ubuntu-latest - container: - image: php:latest - steps: - - uses: actions/checkout@v3.3.0 - - uses: php-actions/composer@master - with: - php_version: '8.1' - ssh_key: ${{ secrets.SSH_KEY }} - ssh_key_pub: ${{ secrets.SSH_KEY_PUB }} - - run: composer self-update - - run: composer install -n --prefer-dist --no-plugins - - run: "./vendor/bin/kahlan -reporter=verbose" \ No newline at end of file