Skip to content

Commit

Permalink
Adding php 8 to checks (#1373)
Browse files Browse the repository at this point in the history
  • Loading branch information
dartcafe authored Jan 30, 2021
1 parent 1bc8064 commit 48c1170
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
php-versions: ['7.4']
server-versions: ['master', 'stable18', 'stable19', 'stable20']
server-versions: ['master', 'stable19', 'stable20']

name: AppCode check php${{ matrix.php-versions }}-${{ matrix.server-versions }}
steps:
Expand Down
55 changes: 55 additions & 0 deletions .github/workflows/app-code-check-8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: PHP AppCode Check

on:
pull_request:
push:
branches:
- master
- stable*

env:
APP_NAME: polls

jobs:
unit-tests:
runs-on: ubuntu-latest

strategy:
matrix:
php-versions: ['8.0']
server-versions: ['master']

name: AppCode check php${{ matrix.php-versions }}-${{ matrix.server-versions }}
steps:
- name: Checkout server
uses: actions/checkout@v2
with:
repository: nextcloud/server
ref: ${{ matrix.server-versions }}

- name: Checkout submodules
shell: bash
run: |
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- name: Checkout app
uses: actions/checkout@v2
with:
path: apps/${{ env.APP_NAME }}

- name: Set up php ${{ matrix.php-versions }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: phpunit
extensions: mbstring, iconv, fileinfo, intl, sqlite, pdo_sqlite

- name: Checkout app
uses: actions/checkout@v2
with:
path: apps/${{ env.APP_NAME }}

- name: App code check
run: php occ app:check-code ${{ env.APP_NAME }}
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
php-versions: [7.4]
php-versions: [7.4, 8.0]

name: php-cs

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
# do not stop on another job's failure
fail-fast: false
matrix:
php-versions: ['7.4']
php-versions: ['7.4', '8.0']
databases: ['sqlite']
server-versions: ['master']

Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
# do not stop on another job's failure
fail-fast: false
matrix:
php-versions: ['7.3', '7.4']
php-versions: ['7.3', '7.4', '8.0']
databases: ['mysql']
server-versions: ['master']

Expand Down Expand Up @@ -149,7 +149,7 @@ jobs:
# do not stop on another job's failure
fail-fast: false
matrix:
php-versions: ['7.4']
php-versions: ['7.4', '8.0']
databases: ['pgsql']
server-versions: ['master']

Expand Down

0 comments on commit 48c1170

Please sign in to comment.