From 6ade2a9fc6ad222ad4f9aef9a27c90b896773a1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Mon, 6 Jan 2020 21:22:01 +0100 Subject: [PATCH] Enhancement: Synchronize with ergebnis/php-library-template --- .dependabot/config.yml | 2 ++ .github/settings.yml | 3 ++- .github/workflows/continuous-deployment.yml | 2 +- .github/workflows/continuous-integration.yml | 6 +++--- .github/workflows/stale.yml | 2 +- Makefile | 2 +- README.md | 2 ++ 7 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.dependabot/config.yml b/.dependabot/config.yml index 2d68a999..5f718083 100644 --- a/.dependabot/config.yml +++ b/.dependabot/config.yml @@ -10,10 +10,12 @@ update_configs: include_scope: true prefix: "Build" default_assignees: + - "ergebnis-bot" - "localheinz" default_labels: - "dependency" default_reviewers: + - "ergebnis-bot" - "localheinz" directory: "/" package_manager: "php:composer" diff --git a/.github/settings.yml b/.github/settings.yml index 3fe7fb42..5362fca3 100644 --- a/.github/settings.yml +++ b/.github/settings.yml @@ -38,7 +38,8 @@ branches: apps: - "dependabot-preview" teams: [] - users: [] + users: + - "ergebnis-bot" # https://developer.github.com/v3/issues/labels/#create-a-label # https://developer.github.com/v3/issues/labels/#update-a-label diff --git a/.github/workflows/continuous-deployment.yml b/.github/workflows/continuous-deployment.yml index b91f7d58..c8b2a2e9 100644 --- a/.github/workflows/continuous-deployment.yml +++ b/.github/workflows/continuous-deployment.yml @@ -21,7 +21,7 @@ jobs: - name: "Create release" uses: "actions/create-release@v1.0.0" env: - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + GITHUB_TOKEN: "${{ secrets.ERGEBNIS_BOT_TOKEN }}" with: draft: false prerelease: false diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 4a7758f0..639fbae0 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -180,7 +180,7 @@ jobs: run: "mkdir -p .build/psalm" - name: "Run vimeo/psalm" - run: "vendor/bin/psalm --config=psalm.xml --show-info=false" + run: "vendor/bin/psalm --config=psalm.xml --shepherd --show-info=false --stats" tests: name: "Tests" @@ -353,8 +353,8 @@ jobs: - "tests" steps: - - name: "Approve" + - name: "Approve pull requests created by dependabot that update development dependencies" uses: "hmarr/auto-approve-action@v2.0.0" if: "(github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]') && github.event_name == 'pull_request' && startsWith(github.event.pull_request.title, 'Build(deps-dev)')" with: - github-token: "${{ secrets.AUTO_APPROVE_TOKEN }}" + github-token: "${{ secrets.ERGEBNIS_BOT_TOKEN }}" diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 582d147a..0d6f48ef 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -16,7 +16,7 @@ jobs: with: days-before-close: 5 days-before-stale: 60 - repo-token: "${{ secrets.GITHUB_TOKEN }}" + repo-token: "${{ secrets.ERGEBNIS_BOT_TOKEN }}" stale-issue-label: 'stale' stale-issue-message: > This issue has been automatically marked as stale because it has not had diff --git a/Makefile b/Makefile index ead43173..9323ea1a 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ static-code-analysis: vendor ## Runs a static code analysis with phpstan/phpstan mkdir -p .build/phpstan vendor/bin/phpstan analyse --configuration=phpstan.neon mkdir -p .build/psalm - vendor/bin/psalm --config=psalm.xml --show-info=false + vendor/bin/psalm --config=psalm.xml --show-info=false --stats .PHONY: static-code-analysis-baseline static-code-analysis-baseline: vendor ## Generates a baseline for static code analysis with phpstan/phpstan and vimeo/psalm diff --git a/README.md b/README.md index 311266e0..24aa745d 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,9 @@ # test-util +[![Continuous Deployment](https://github.com/ergebnis/test-util/workflows/Continuous%20Deployment/badge.svg)](https://github.com/ergebnis/test-util/actions) [![Continuous Integration](https://github.com/ergebnis/test-util/workflows/Continuous%20Integration/badge.svg)](https://github.com/ergebnis/test-util/actions) [![Code Coverage](https://codecov.io/gh/ergebnis/test-util/branch/master/graph/badge.svg)](https://codecov.io/gh/ergebnis/test-util) +[![Type Coverage](https://shepherd.dev/github/ergebnis/test-util/coverage.svg)](https://shepherd.dev/github/ergebnis/test-util) [![Latest Stable Version](https://poser.pugx.org/ergebnis/test-util/v/stable)](https://packagist.org/packages/ergebnis/test-util) [![Total Downloads](https://poser.pugx.org/ergebnis/test-util/downloads)](https://packagist.org/packages/ergebnis/test-util)