diff options
author | Joas Schilling <coding@schilljs.com> | 2022-10-18 13:04:42 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-10-18 13:04:42 +0300 |
commit | c6e51df1ca8052d32eb21d9e890cfa9fbfdebf0e (patch) | |
tree | 9423d86dd1db6a0d074494c754f297a68cccdc25 | |
parent | 470111fe643623b6defb7814990a9a34be0f3465 (diff) |
Reduce CI
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | .github/workflows/dependabot-approve-merge.yml | 6 | ||||
-rw-r--r-- | .github/workflows/lint-info-xml.yml | 14 | ||||
-rw-r--r-- | .github/workflows/lint-php-cs.yml | 2 | ||||
-rw-r--r-- | .github/workflows/lint-php.yml | 10 | ||||
-rw-r--r-- | .github/workflows/node.yml | 12 | ||||
-rw-r--r-- | .github/workflows/phpunit-mysql.yml | 8 | ||||
-rw-r--r-- | .github/workflows/phpunit-pgsql.yml | 8 | ||||
-rw-r--r-- | .github/workflows/phpunit-sqlite.yml | 8 | ||||
-rw-r--r-- | .github/workflows/psalm.yml | 12 |
9 files changed, 27 insertions, 53 deletions
diff --git a/.github/workflows/dependabot-approve-merge.yml b/.github/workflows/dependabot-approve-merge.yml index 0d6e343..624dea1 100644 --- a/.github/workflows/dependabot-approve-merge.yml +++ b/.github/workflows/dependabot-approve-merge.yml @@ -12,6 +12,10 @@ on: - master - stable* +concurrency: + group: dependabot-approve-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + permissions: contents: read @@ -21,7 +25,7 @@ jobs: runs-on: ubuntu-latest permissions: # for hmarr/auto-approve-action to approve PRs - pull-requests: write + pull-requests: write steps: # Github actions bot approve diff --git a/.github/workflows/lint-info-xml.yml b/.github/workflows/lint-info-xml.yml index cea2a2b..dbf5be6 100644 --- a/.github/workflows/lint-info-xml.yml +++ b/.github/workflows/lint-info-xml.yml @@ -5,12 +5,14 @@ name: Lint -on: - pull_request: - push: - branches: - - master - - stable* +on: pull_request + +permissions: + contents: read + +concurrency: + group: lint-info-xml-${{ github.head_ref || github.run_id }} + cancel-in-progress: true jobs: xml-linters: diff --git a/.github/workflows/lint-php-cs.yml b/.github/workflows/lint-php-cs.yml index 2814102..9f4bad1 100644 --- a/.github/workflows/lint-php-cs.yml +++ b/.github/workflows/lint-php-cs.yml @@ -10,7 +10,7 @@ on: pull_request permissions: contents: read -concurrency: +concurrency: group: lint-php-cs-${{ github.head_ref || github.run_id }} cancel-in-progress: true diff --git a/.github/workflows/lint-php.yml b/.github/workflows/lint-php.yml index 62476c9..0509e80 100644 --- a/.github/workflows/lint-php.yml +++ b/.github/workflows/lint-php.yml @@ -5,18 +5,12 @@ name: Lint -on: - pull_request: - push: - branches: - - main - - master - - stable* +on: pull_request permissions: contents: read -concurrency: +concurrency: group: lint-php-${{ github.head_ref || github.run_id }} cancel-in-progress: true diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml index 9150d1f..5caf469 100644 --- a/.github/workflows/node.yml +++ b/.github/workflows/node.yml @@ -5,17 +5,15 @@ name: Node -on: - pull_request: - push: - branches: - - main - - master - - stable* +on: pull_request permissions: contents: read +concurrency: + group: node-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: build: runs-on: ubuntu-latest diff --git a/.github/workflows/phpunit-mysql.yml b/.github/workflows/phpunit-mysql.yml index 151a507..3e74888 100644 --- a/.github/workflows/phpunit-mysql.yml +++ b/.github/workflows/phpunit-mysql.yml @@ -19,16 +19,10 @@ on: - 'composer.json' - 'composer.lock' - push: - branches: - - main - - master - - stable* - permissions: contents: read -concurrency: +concurrency: group: phpunit-mysql-${{ github.head_ref || github.run_id }} cancel-in-progress: true diff --git a/.github/workflows/phpunit-pgsql.yml b/.github/workflows/phpunit-pgsql.yml index 2138c0b..115c68b 100644 --- a/.github/workflows/phpunit-pgsql.yml +++ b/.github/workflows/phpunit-pgsql.yml @@ -19,16 +19,10 @@ on: - 'composer.json' - 'composer.lock' - push: - branches: - - main - - master - - stable* - permissions: contents: read -concurrency: +concurrency: group: phpunit-pgsql-${{ github.head_ref || github.run_id }} cancel-in-progress: true diff --git a/.github/workflows/phpunit-sqlite.yml b/.github/workflows/phpunit-sqlite.yml index 3686cc3..3f68a5c 100644 --- a/.github/workflows/phpunit-sqlite.yml +++ b/.github/workflows/phpunit-sqlite.yml @@ -19,16 +19,10 @@ on: - 'composer.json' - 'composer.lock' - push: - branches: - - main - - master - - stable* - permissions: contents: read -concurrency: +concurrency: group: phpunit-sqlite-${{ github.head_ref || github.run_id }} cancel-in-progress: true diff --git a/.github/workflows/psalm.yml b/.github/workflows/psalm.yml index dc4d05d..34d6a6f 100644 --- a/.github/workflows/psalm.yml +++ b/.github/workflows/psalm.yml @@ -5,15 +5,9 @@ name: Static analysis -on: - pull_request: - push: - branches: - - master - - main - - stable* - -concurrency: +on: pull_request + +concurrency: group: psalm-${{ github.head_ref || github.run_id }} cancel-in-progress: true |