Skip to content

Commit

Permalink
Add PHP8.1 support
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <[email protected]>
  • Loading branch information
ChristophWurst committed Jun 13, 2022
1 parent 4b6937d commit bccdd16
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 11 deletions.
44 changes: 34 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,16 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: [ 8.0 ]
nextcloud-version: [ 'master', 'stable23', 'stable22' ]
php-version: [ "8.1" ]
nextcloud-version: [ 'master', 'stable24' ]
db: ['sqlite']
include:
- php-version: "8.0"
nextcloud-version: stable23
db: sqlite
- php-version: "7.4"
nextcloud-version: stable22
db: sqlite

name: Nextcloud ${{ matrix.nextcloud-version }} php${{ matrix.php-version }} unit tests
steps:
Expand Down Expand Up @@ -61,17 +68,21 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: [ "7.4", "8.0" ]
nextcloud-version: [ 'master', 'stable22' ]
browser: [ 'firefox', 'chrome' ]
php-version: [ "8.1" ]
nextcloud-version: [ 'master' ]
browser: [ 'firefox' ]
db: [ 'mysql' ]
include:
- php-versions: "8.1"
nextcloud-versions: "master"
- php-version: "8.1"
nextcloud-version: "stable24"
browser: 'chrome'
db: 'sqlite'
- php-version: "8.0"
nextcloud-version: "stable23"
browser: 'firefox'
db: 'mysql'
- php-versions: "8.1"
nextcloud-versions: "master"
db: 'pgsql'
- php-version: "7.4"
nextcloud-version: "stable22"
browser: 'chrome'
db: 'mysql'

Expand All @@ -92,6 +103,19 @@ jobs:
--health-interval=10s
--health-timeout=5s
--health-retries=3
postgres-service:
image: postgres
env:
POSTGRES_USER: nextcloud
POSTGRES_DB: nextcloud
POSTGRES_PASSWORD: nextcloud
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Set up php${{ matrix.php-version }}
Expand Down
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<screenshot>https://raw.githubusercontent.com/nextcloud/twofactor_totp/dd1e48deec73a250886f35f3924186f5357f4c5f/screenshots/enter_challenge.png</screenshot>
<screenshot>https://raw.githubusercontent.com/nextcloud/twofactor_totp/dd1e48deec73a250886f35f3924186f5357f4c5f/screenshots/settings.png</screenshot>
<dependencies>
<php min-version="7.4" max-version="8.0" />
<php min-version="7.4" max-version="8.1" />
<nextcloud min-version="22" max-version="25" />
</dependencies>
<two-factor-providers>
Expand Down

0 comments on commit bccdd16

Please sign in to comment.