Skip to content

Commit f9c200f

Browse files
committed
Move out of Travis CI PHP 8.1 CI and add PHP 8.0
Picks most of the changes done in 7fcc6af Signed-off-by: William Desportes <[email protected]>
1 parent fd1552e commit f9c200f

2 files changed

Lines changed: 17 additions & 9 deletions

File tree

.github/workflows/tests.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,15 @@ jobs:
1212
test-php:
1313
name: Test on php ${{ matrix.php-version }} and ${{ matrix.os }}
1414
runs-on: ${{ matrix.os }}
15+
continue-on-error: ${{ matrix.experimental }}
1516
strategy:
1617
matrix:
17-
php-version: ["5.3", "5.4", "5.5", "5.6", "7.0", "7.1", "7.2", "7.3", "7.4"]
18+
php-version: ["5.3", "5.4", "5.5", "5.6", "7.1", "7.2", "7.3", "7.4", "8.0"]
1819
os: [ubuntu-latest]
20+
experimental: [false]
21+
composer-options: ['']
22+
include:
23+
- { php-version: '8.1', experimental: true, os: ubuntu-latest, composer-options: '--ignore-platform-reqs' }
1924
steps:
2025
- uses: actions/checkout@v2
2126
- name: Use php ${{ matrix.php-version }}
@@ -24,13 +29,19 @@ jobs:
2429
php-version: ${{ matrix.php-version }}
2530
extensions: mbstring
2631
coverage: xdebug
27-
- name: Cache module
32+
- name: Get Composer Cache Directory
33+
id: composer-cache
34+
run: |
35+
echo "::set-output name=dir::$(composer config cache-files-dir)"
36+
- name: Restore cache
2837
uses: actions/cache@v2
2938
with:
30-
path: ~/.composer/cache/
31-
key: composer-cache
39+
path: ${{ steps.composer-cache.outputs.dir }}
40+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
41+
restore-keys: |
42+
${{ runner.os }}-composer-
3243
- name: Install dependencies
33-
run: composer install
44+
run: composer install --no-interaction ${{ matrix.composer-options }}
3445
- name: Install motranslator
3546
if: ${{ matrix.php-version == '7.1' }}
3647
run: composer require phpmyadmin/motranslator:^3.0

.travis.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,9 @@ dist: trusty
55
php:
66
- hhvm-3.12
77
- hhvm-3.24
8-
- nightly
98

109
matrix:
11-
fast_finish: true
12-
allow_failures:
13-
- php: nightly
10+
fast_finish: false
1411

1512
install:
1613
- composer install

0 commit comments

Comments
 (0)