From e7fb29b09495b6706b239fbc5c99a4c44e66685f Mon Sep 17 00:00:00 2001 From: youssef ACHCHIRAJ Date: Tue, 7 Oct 2025 08:10:11 +0100 Subject: [PATCH 1/3] Set up CI for github actions run Unit and Features Tests for new PRs --- .github/workflows/laravel.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/laravel.yml diff --git a/.github/workflows/laravel.yml b/.github/workflows/laravel.yml new file mode 100644 index 0000000..538cb31 --- /dev/null +++ b/.github/workflows/laravel.yml @@ -0,0 +1,24 @@ +name: Laravel + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + laravel-tests: + + runs-on: ubuntu-latest + + steps: + - uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e + with: + php-version: '8.0' + - uses: actions/checkout@v4 + - name: Install Dependencies + run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist + - name: Directory Permissions + run: chmod -R 777 storage bootstrap/cache + - name: Execute tests (Unit and Feature tests) via Pest + run: composer test From e90df7beaadbe40be6f9d74ae29c4c2a51f30ac4 Mon Sep 17 00:00:00 2001 From: youssef ACHCHIRAJ Date: Tue, 7 Oct 2025 08:24:45 +0100 Subject: [PATCH 2/3] Update php version --- .github/workflows/laravel.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/laravel.yml b/.github/workflows/laravel.yml index 538cb31..54939fb 100644 --- a/.github/workflows/laravel.yml +++ b/.github/workflows/laravel.yml @@ -14,7 +14,7 @@ jobs: steps: - uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e with: - php-version: '8.0' + php-version: '8.4' - uses: actions/checkout@v4 - name: Install Dependencies run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist From a4e60988fbcc7ee39f82fb7e789cd5a68ad1a827 Mon Sep 17 00:00:00 2001 From: youssef ACHCHIRAJ Date: Tue, 7 Oct 2025 08:28:21 +0100 Subject: [PATCH 3/3] remove directory permission step --- .github/workflows/laravel.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/laravel.yml b/.github/workflows/laravel.yml index 54939fb..69dd9a8 100644 --- a/.github/workflows/laravel.yml +++ b/.github/workflows/laravel.yml @@ -18,7 +18,5 @@ jobs: - uses: actions/checkout@v4 - name: Install Dependencies run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist - - name: Directory Permissions - run: chmod -R 777 storage bootstrap/cache - name: Execute tests (Unit and Feature tests) via Pest run: composer test