From 02c6dd07c6cbd592a3b662033f1e6f2fc1657c9b Mon Sep 17 00:00:00 2001 From: Jason Roelofs Date: Fri, 29 Mar 2024 12:38:35 -0400 Subject: [PATCH] Migrate our CI to run on GitHub Actions We are moving our CI off of Semaphore --- .github/workflows/ci.yml | 43 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a83f863 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,43 @@ +name: CI + +on: + push: + branches: + - 'main' + pull_request: {} + +defaults: + run: + shell: bash + +jobs: + test: + name: Test PHP ${{ matrix.php }} Laravel ${{ matrix.laravel }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + php: ['8.1', '8.2', '8.3'] + laravel: ['7.*', '8.*', '9.*', '10.*'] + steps: + - uses: actions/checkout@v4 + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv + tools: composer + coverage: none + + - name: Run composer install + run: | + composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update + composer update --no-interaction --no-suggest --prefer-dist + + - name: Lint and formatting + run: | + composer run-script format-check + + - name: Run tests + run: | + composer run-script test