Skip to content

Commit

Permalink
ci: synchronize workflows (#16)
Browse files Browse the repository at this point in the history
* ci: synchronize workflows
* ci: create new milestones on release
  • Loading branch information
geerteltink committed Dec 29, 2020
1 parent 5eb3961 commit a91ee24
Show file tree
Hide file tree
Showing 9 changed files with 50 additions and 3,420 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-label-prs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Auto label Pull Requests

on:
pull_request:
pull_request_target:

jobs:
triage:
Expand Down
62 changes: 36 additions & 26 deletions .github/workflows/automatic-release.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,55 @@
name: Automatic Releases
name: "Automatic Releases"

on:
milestone:
types:
- closed
- "closed"

jobs:
release:
name: GIT tag, release & create merge-up PR
name: "GIT tag, release & create merge-up PR"
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
- name: "Checkout"
uses: "actions/checkout@v2"

- name: Release
uses: laminas/automatic-releases@v1
- name: "Release"
uses: "laminas/automatic-releases@v1"
with:
command-name: laminas:automatic-releases:release
command-name: "laminas:automatic-releases:release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SIGNING_SECRET_KEY: ${{ secrets.SIGNING_SECRET_KEY }}
GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }}
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
"GITHUB_TOKEN": ${{ secrets.ORGANIZATION_ADMIN_TOKEN }}
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}

- name: Create Merge-Up Pull Request
uses: laminas/automatic-releases@v1
- name: "Create Merge-Up Pull Request"
uses: "laminas/automatic-releases@v1"
with:
command-name: laminas:automatic-releases:create-merge-up-pull-request
command-name: "laminas:automatic-releases:create-merge-up-pull-request"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SIGNING_SECRET_KEY: ${{ secrets.SIGNING_SECRET_KEY }}
GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }}
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
"GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }}
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}

- name: Create and/or Switch to new Release Branch
uses: laminas/automatic-releases@v1
- name: "Create and/or Switch to new Release Branch"
uses: "laminas/automatic-releases@v1"
with:
command-name: laminas:automatic-releases:switch-default-branch-to-next-minor
command-name: "laminas:automatic-releases:switch-default-branch-to-next-minor"
env:
GITHUB_TOKEN: ${{ secrets.ORGANIZATION_ADMIN_TOKEN }}
SIGNING_SECRET_KEY: ${{ secrets.SIGNING_SECRET_KEY }}
GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }}
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
"GITHUB_TOKEN": ${{ secrets.ORGANIZATION_ADMIN_TOKEN }}
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}

- name: "Create new milestones"
uses: "laminas/automatic-releases@v1"
with:
command-name: "laminas:automatic-releases:create-milestones"
env:
"GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }}
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
19 changes: 4 additions & 15 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ jobs:

strategy:
matrix:
dependencies:
- locked
php-version:
- 7.4
operating-system:
Expand All @@ -35,20 +33,11 @@ jobs:
path: |
~/.composer/cache
vendor
key: php-${{ matrix.php-version }}-${{ matrix.dependencies }}
restore-keys: php-${{ matrix.php-version }}-${{ matrix.dependencies }}
key: php-${{ matrix.php-version }}
restore-keys: php-${{ matrix.php-version }}

- name: Install lowest dependencies
if: ${{ matrix.dependencies == 'lowest' }}
run: composer update --prefer-lowest --no-interaction --no-progress --no-suggest

- name: Install highest dependencies
if: ${{ matrix.dependencies == 'highest' }}
run: composer update --no-interaction --no-progress --no-suggest

- name: Install locked dependencies
if: ${{ matrix.dependencies == 'locked' }}
- name: Install dependencies
run: composer install --no-interaction --no-progress --no-suggest

- name: Coding Standard
- name: Check coding standard
run: vendor/bin/phpcs
2 changes: 1 addition & 1 deletion .github/workflows/merged-notification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ jobs:
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '👋 Thanks for contributing!'
body: 'Thanks for contributing!'
})
4 changes: 0 additions & 4 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,5 @@ jobs:
if: ${{ matrix.dependencies == 'highest' }}
run: composer update --no-interaction --no-progress --no-suggest --ignore-platform-reqs

- name: Install locked dependencies
if: ${{ matrix.dependencies == 'locked' }}
run: composer install --no-interaction --no-progress --no-suggest --ignore-platform-reqs

- name: Tests
run: vendor/bin/phpunit
19 changes: 4 additions & 15 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ jobs:

strategy:
matrix:
dependencies:
- locked
php-version:
- 7.4
operating-system:
Expand All @@ -35,20 +33,11 @@ jobs:
path: |
~/.composer/cache
vendor
key: php-${{ matrix.php-version }}-${{ matrix.dependencies }}
restore-keys: php-${{ matrix.php-version }}-${{ matrix.dependencies }}
key: php-${{ matrix.php-version }}
restore-keys: php-${{ matrix.php-version }}

- name: Install lowest dependencies
if: ${{ matrix.dependencies == 'lowest' }}
run: composer update --prefer-lowest --no-interaction --no-progress --no-suggest

- name: Install highest dependencies
if: ${{ matrix.dependencies == 'highest' }}
run: composer update --no-interaction --no-progress --no-suggest

- name: Install locked dependencies
if: ${{ matrix.dependencies == 'locked' }}
- name: Install dependencies
run: composer install --no-interaction --no-progress --no-suggest

- name: Rub static analysis
- name: Run static analysis
run: vendor/bin/phpstan analyse --level=0 src test
7 changes: 3 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.phpcs-cache
/clover.xml
/coveralls-upload.json
/phpunit.xml
/vendor/
.phpunit.result.cache
composer.lock
phpunit.xml
vendor/
4 changes: 1 addition & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "xtreamwayz/mezzio-console",
"type": "library",
"description": "Symfony Console for Mezzio",
"keywords": [
"console",
Expand All @@ -24,9 +25,6 @@
"phpunit/phpunit": "^9.4"
},
"config": {
"platform": {
"php": "7.4"
},
"sort-packages": true
},
"extra": {
Expand Down

0 comments on commit a91ee24

Please sign in to comment.