From 421799175d093d9604c5d2d0d45140c526bf3410 Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Mon, 12 Feb 2024 21:57:34 +0100 Subject: [PATCH] lint --- .github/workflows/lint-php.yml | 48 ++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/lint-php.yml diff --git a/.github/workflows/lint-php.yml b/.github/workflows/lint-php.yml new file mode 100644 index 0000000..86c3c93 --- /dev/null +++ b/.github/workflows/lint-php.yml @@ -0,0 +1,48 @@ +# This workflow is provided via the organization template repository +# +# https://github.com/nextcloud/.github +# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization + +name: Lint + +on: + pull_request: + push: + branches: + - main + - master + - stable* + +jobs: + php-lint: + runs-on: self-hosted + strategy: + matrix: + php-versions: ['8.1', '8.2', '8.3'] + + name: php-lint + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Set up php ${{ matrix.php-versions }} + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-versions }} + coverage: none + + - name: Lint + run: composer run lint + + summary: + runs-on: self-hosted + needs: php-lint + + if: always() + + name: php-lint-summary + + steps: + - name: Summary status + run: if ${{ needs.php-lint.result != 'success' && needs.php-lint.result != 'skipped' }}; then exit 1; fi \ No newline at end of file