From 138e2c61e77454fe6fe73da6c3408aeeecdceff7 Mon Sep 17 00:00:00 2001 From: Nick the Sick Date: Mon, 12 Aug 2024 10:14:56 +0200 Subject: [PATCH] chore: on push, run tests --- .github/workflows/php-cs-fixer.yml | 13 ++++++++++++- .github/workflows/psalm.yml | 15 +++++++++++---- .github/workflows/run-tests.yml | 13 ++++++++++++- 3 files changed, 35 insertions(+), 6 deletions(-) diff --git a/.github/workflows/php-cs-fixer.yml b/.github/workflows/php-cs-fixer.yml index f55d1fa..0d7460c 100644 --- a/.github/workflows/php-cs-fixer.yml +++ b/.github/workflows/php-cs-fixer.yml @@ -1,6 +1,17 @@ name: Check & fix styling -on: [push] +on: + push: + branches: + - main + - develop + - next + - release/* + pull_request: + branches: + - main + - develop + - next jobs: php-cs-fixer: diff --git a/.github/workflows/psalm.yml b/.github/workflows/psalm.yml index e48b24f..bc7d3a0 100644 --- a/.github/workflows/psalm.yml +++ b/.github/workflows/psalm.yml @@ -2,9 +2,16 @@ name: Psalm on: push: - paths: - - '**.php' - - 'psalm.xml.dist' + branches: + - main + - develop + - next + - release/* + pull_request: + branches: + - main + - develop + - next jobs: psalm: @@ -16,7 +23,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.0' + php-version: "8.0" extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick coverage: none diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index f0d70ee..77dd353 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -1,6 +1,17 @@ name: Tests -on: [push, pull_request] +on: + push: + branches: + - main + - develop + - next + - release/* + pull_request: + branches: + - main + - develop + - next jobs: test: