From 4d17d0ea88ad89e7d55172d4bf36eb179334164d Mon Sep 17 00:00:00 2001 From: Jimmy Felder Date: Tue, 9 Jan 2024 14:37:34 -0500 Subject: [PATCH 1/2] Switching to GitHub Actions --- .github/workflows/tests.yml | 47 +++++++++++++++++++++++++++++++++++++ .travis.yml | 18 -------------- 2 files changed, 47 insertions(+), 18 deletions(-) create mode 100644 .github/workflows/tests.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..c520080 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,47 @@ +name: Tests + +on: + push: + branches: + - master + - '*.x' + pull_request: + schedule: + - cron: '0 0 * * *' + +permissions: + contents: read + +jobs: + tests: + runs-on: ubuntu-latest + + strategy: + fail-fast: true + matrix: + php: [8.1, 8.2, 8.3] + + name: PHP ${{ matrix.php }} + + steps: + - name: Checkout code + 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 + coverage: none + + - name: Install Composer dependencies + run: composer install --prefer-dist --no-interaction --no-progress + + - name: Copy environment file + run: cp .env.example .env + + - name: Generate app key + run: php artisan key:generate + + - name: Execute tests + run: vendor/bin/phpunit \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f6ca083..0000000 --- a/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -language: php - -php: - - 8.1 - -env: - global: - - setup=basic - -matrix: - fast_finish: true - -sudo: false - -install: - - if [[ $setup = 'basic' ]]; then travis_retry composer install --no-interaction --prefer-dist --no-suggest; fi - -script: vendor/bin/phpunit From d46024375e5040bdf7e2be8e475e5a4cae9173b0 Mon Sep 17 00:00:00 2001 From: Jimmy Felder Date: Tue, 9 Jan 2024 14:48:10 -0500 Subject: [PATCH 2/2] Working on config --- .github/workflows/tests.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c520080..8a03dde 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -37,11 +37,5 @@ jobs: - name: Install Composer dependencies run: composer install --prefer-dist --no-interaction --no-progress - - name: Copy environment file - run: cp .env.example .env - - - name: Generate app key - run: php artisan key:generate - - name: Execute tests run: vendor/bin/phpunit \ No newline at end of file