diff options
author | Joas Schilling <coding@schilljs.com> | 2020-10-13 14:02:11 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-10-13 14:02:11 +0300 |
commit | e679285b59dab250fe62dc7ae9257a12e22f6202 (patch) | |
tree | 481d1383ecc69470f6e9f30ef73f27bd40fd35da /.github | |
parent | dddb7ef31d903e2023bb7872fc98b058262b59f5 (diff) |
Fix github action
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/psalm.yml | 49 |
1 files changed, 28 insertions, 21 deletions
diff --git a/.github/workflows/psalm.yml b/.github/workflows/psalm.yml index 266433788..6429dab6a 100644 --- a/.github/workflows/psalm.yml +++ b/.github/workflows/psalm.yml @@ -1,23 +1,30 @@ name: Static analysis -on: [push] + +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@master - - name: Set up php - uses: shivammathur/setup-php@master - 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 + static-psalm-analysis: + 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@master + 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 |