diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 8ceb2dc..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,27 +0,0 @@ -version: 2.1 - -jobs: - build_php_version: - 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_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 - - build_latest diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml new file mode 100644 index 0000000..ac93a93 --- /dev/null +++ b/.github/workflows/build_test.yml @@ -0,0 +1,30 @@ +name: michaelachrisco2/ReadOnlyTraitLaravel/build +on: + push: + branches: + - main +jobs: + build_php_version: + defaults: + run: + working-directory: "~/ReadOnlyTraitLaravel" + runs-on: ubuntu-latest + container: + image: php:8.0.20 + steps: + - uses: actions/checkout@v3.3.0 + - run: sudo composer self-update + - run: composer install -n --prefer-dist --no-plugins + - run: "./vendor/bin/kahlan -reporter=verbose" + build_latest: + defaults: + run: + working-directory: "~/ReadOnlyTraitLaravel" + runs-on: ubuntu-latest + container: + image: php:latest + steps: + - uses: actions/checkout@v3.3.0 + - run: sudo composer self-update + - run: composer install -n --prefer-dist --no-plugins + - run: "./vendor/bin/kahlan -reporter=verbose" \ No newline at end of file