Skip to content

Commit 6494925

Browse files
authored
Merge pull request #135 from patinthehat/add-php82-support-v1.0
Add PHP 8.2 Support
2 parents 872b9e7 + 9b1571a commit 6494925

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

.github/workflows/run-tests.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
os: [ubuntu-latest]
16-
php: [8.1, 8.0]
16+
php: [8.2, 8.1, 8.0]
1717
laravel: [9.*, 8.*]
1818
stability: [prefer-lowest, prefer-stable]
1919
include:
@@ -26,17 +26,20 @@ jobs:
2626

2727
steps:
2828
- name: Checkout code
29-
uses: actions/checkout@v2
29+
uses: actions/checkout@v3
3030

3131
- name: Install SQLite 3 (3.32 is required and only included in Ubuntu 21.x)
3232
run: |
33+
sudo apt-get update
3334
sudo apt-get install build-essential tar wget
34-
wget https://www.sqlite.org/2021/sqlite-autoconf-3370000.tar.gz
35-
tar xzf sqlite-autoconf-3370000.tar.gz
36-
cd sqlite-autoconf-3370000
37-
./configure
35+
wget https://www.sqlite.org/2022/sqlite-autoconf-3400000.tar.gz
36+
tar xzf sqlite-autoconf-3400000.tar.gz
37+
cd sqlite-autoconf-3400000
38+
./configure --prefix=/usr
3839
make
3940
sudo make install
41+
sudo cp -f ./sqlite3 /usr/bin/sqlite3
42+
cd ..
4043
sqlite3 --version
4144
4245
- name: Setup PHP
@@ -50,9 +53,11 @@ jobs:
5053
run: |
5154
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
5255
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
56+
5357
- name: Install dependencies
5458
run: |
55-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
59+
composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:^2.63" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
5660
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
61+
5762
- name: Execute tests
58-
run: vendor/bin/pest --no-coverage
63+
run: vendor/bin/pest

0 commit comments

Comments
 (0)