diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2022-08-17 14:04:18 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-17 14:04:18 +0300 |
commit | 34f39a21c3731e43286c61ac27662a48d9ea09cf (patch) | |
tree | eda2cb0b35af37cf0b50bdc89f9b4caa9989f238 /.github | |
parent | ac3de857b83f6a9cefde4a90d09b31b01d8cfa7d (diff) |
Make psalm run on pushes to protected branchesnickvergessen-patch-1
Signed-off-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/static-analysis.yml | 52 |
1 files changed, 31 insertions, 21 deletions
diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 8fa3c9ec..7248ad6e 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -1,26 +1,36 @@ name: Static analysis -on: [pull_request] +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@v2 - 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 + runs-on: ubuntu-latest + + strategy: + matrix: + ocp-version: [ 'dev-master' ] + + name: Nextcloud ${{ matrix.ocp-version }} + steps: + - name: Checkout + uses: actions/checkout@master + + - name: Set up php + uses: shivammathur/setup-php@v2 + with: + php-version: 7.4 + 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 |