Skip to content

Commit

Permalink
Merge branches '2.x' and 'test' of https://github.com/anilkumarthakur…
Browse files Browse the repository at this point in the history
  • Loading branch information
codesandbot committed May 1, 2024
2 parents b836cd2 + da0ec79 commit 2b91867
Showing 1 changed file with 33 additions and 21 deletions.
54 changes: 33 additions & 21 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,29 @@ jobs:

strategy:
matrix:
php: [8.1,8.2,8.3]
laravel: [8.*,9.*,10.*,11.*]
# php: [8.1]
# laravel: [8.*]
php: [8.0, 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: "10.*"
php: 8.0

- laravel: "11.*"
php: 8.0
- laravel: "11.*"
php: 8.1


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


services:
mysql:
image: mysql:8.0
Expand All @@ -40,31 +57,26 @@ 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: Display PHP version
run: |
php -v
cat composer.json
- name: Run php pest tests
run: vendor/bin/pest
Expand Down

0 comments on commit 2b91867

Please sign in to comment.