kopia lustrzana https://github.com/nextcloud/social
Use psalm instead of psalm-matrix
Signed-off-by: Louis Chemineau <louis@chmn.me>pull/1771/head
rodzic
c90652d310
commit
5aa3efeda4
|
@ -20,13 +20,8 @@ concurrency:
|
||||||
jobs:
|
jobs:
|
||||||
static-analysis:
|
static-analysis:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
|
||||||
# do not stop on another job's failure
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
ocp-version: [ 'dev-master', 'dev-stable27', 'dev-stable26', 'dev-stable25']
|
|
||||||
|
|
||||||
name: Nextcloud ${{ matrix.ocp-version }}
|
name: Nextcloud
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
|
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
|
||||||
|
@ -34,7 +29,7 @@ jobs:
|
||||||
- name: Set up php
|
- name: Set up php
|
||||||
uses: shivammathur/setup-php@c5fc0d8281aba02c7fda07d3a70cc5371548067d # v2
|
uses: shivammathur/setup-php@c5fc0d8281aba02c7fda07d3a70cc5371548067d # v2
|
||||||
with:
|
with:
|
||||||
php-version: 8.0
|
php-version: 8.1
|
||||||
coverage: none
|
coverage: none
|
||||||
ini-file: development
|
ini-file: development
|
||||||
env:
|
env:
|
||||||
|
@ -43,20 +38,5 @@ jobs:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: composer i
|
run: composer i
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: composer require --dev nextcloud/ocp:${{ matrix.ocp-version }} --ignore-platform-reqs --with-dependencies
|
|
||||||
|
|
||||||
- name: Run coding standards check
|
- name: Run coding standards check
|
||||||
run: composer run psalm
|
run: composer run psalm
|
||||||
|
|
||||||
summary:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: static-analysis
|
|
||||||
|
|
||||||
if: always()
|
|
||||||
|
|
||||||
name: static-psalm-analysis-summary
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Summary status
|
|
||||||
run: if ${{ needs.static-analysis.result != 'success' }}; then exit 1; fi
|
|
Ładowanie…
Reference in New Issue