-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from nextcloud/ci
Add psalm and php-cs-fixer
- Loading branch information
Showing
43 changed files
with
834 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Lint | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
- stable* | ||
|
||
jobs: | ||
php: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
php-versions: ['7.4', '8.0', '8.1'] | ||
|
||
name: php${{ matrix.php-versions }} lint | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up php${{ matrix.php-versions }} | ||
uses: shivammathur/setup-php@2.18.1 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
coverage: none | ||
- name: Lint | ||
run: composer run lint | ||
|
||
php-cs-fixer: | ||
name: php-cs check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up php | ||
uses: shivammathur/setup-php@2.18.1 | ||
with: | ||
php-version: 7.4 | ||
coverage: none | ||
- name: Install dependencies | ||
run: composer i | ||
- name: Run coding standards check | ||
run: composer run cs:check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Static analysis | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
- stable* | ||
|
||
jobs: | ||
static-psalm-analysis: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
ocp-version: [ 'dev-master' ] | ||
name: Nextcloud ${{ matrix.ocp-version }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up php | ||
uses: shivammathur/setup-php@2.18.1 | ||
with: | ||
php-version: 7.4 | ||
tools: composer:v1 | ||
coverage: none | ||
- name: Install dependencies | ||
run: composer i | ||
- name: Install dependencies | ||
run: composer require --dev christophwurst/nextcloud:${{ matrix.ocp-version }} | ||
- name: Run coding standards check | ||
run: composer run psalm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
<?php declare(strict_types=1); | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.