Skip to content

Commit

Permalink
Merge pull request #13 from anilkumarthakur60/test
Browse files Browse the repository at this point in the history
ci fixes
  • Loading branch information
anilkumarthakur60 authored May 1, 2024
2 parents b836cd2 + 20a12d2 commit 1d8afe8
Showing 1 changed file with 24 additions and 23 deletions.
47 changes: 24 additions & 23 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,23 @@ jobs:

strategy:
matrix:
php: [8.1,8.2,8.3]
laravel: [8.*,9.*,10.*,11.*]
# php: [8.1]
# laravel: [8.*]
name: running L-${{ matrix.laravel }} on PHP-${{ matrix.php }}
php: [8.1, 8.2, 8.3]
laravel: ["8.*", "9.*", "10.*", "11.*"]
exclude:
- laravel: "8.*"
php: 8.2
- laravel: "8.*"
php: 8.3

- laravel: "9.*"
php: 8.3

- laravel: "11.*"
php: 8.1


name: running L-${{ matrix.php }} on PHP-${{ matrix.laravel }}


services:
mysql:
Expand All @@ -40,32 +52,21 @@ jobs:
extensions: intl, zip, pdo, pdo_mysql, pcntl, bcmath, gd, soap, xsl, xml, xmlrpc, mbstring, curl, json, dom, iconv, simplexml, xmlwriter, xmlreader, phar, posix, ctype, tokenizer, session, fileinfo, filter, hash, openssl, pcre, SPL, Reflection, calendar, exif, gettext, sockets, standard, date, libxml, zlib
coverage: none

- name: Get Composer Cache Directory and write to file
run: |
echo "$(composer config cache-files-dir)" > composer-cache-dir.txt
echo "COMPOSER_CACHE_DIR=$(cat composer-cache-dir.txt)" >> $GITHUB_ENV
- name: Cache Composer dependencies
uses: actions/cache@v4
with:
path: |
${{ runner.os }}-composer-cache
~/.composer/cache/files
~/.cache/composer/files
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Setup cache path from file
run: |
echo "COMPOSER_CACHE_DIR=$(cat composer-cache-dir.txt)" >> $GITHUB_ENV
- name: Use cached directory in subsequent steps
run: |
# Use the COMPOSER_CACHE_DIR environment variable as needed here
echo "Cached Composer directory: $COMPOSER_CACHE_DIR"
- name: Install Composer dependencies
- name: Install dependencies
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist


# - name: Laravel Version
# run: composer show laravel/framework | grep -E '^(name|versions)'
- name: Run php pest tests
run: vendor/bin/pest
env:
Expand Down

0 comments on commit 1d8afe8

Please sign in to comment.