Skip to content

Commit

Permalink
ci: synchronize workflows (#60)
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 124dfae commit 8a7d612
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 63 deletions.
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 }}
23 changes: 6 additions & 17 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ jobs:

strategy:
matrix:
dependencies:
- locked
php-version:
- 8.0
- 7.4
operating-system:
- ubuntu-latest

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 --ignore-platform-reqs
- name: Install dependencies
run: composer install --no-interaction --no-progress --no-suggest

- name: Install highest dependencies
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: Coding Standard
- name: Check coding standard
run: vendor/bin/phpcs
2 changes: 1 addition & 1 deletion .github/workflows/conventional-pr-title.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Check PR title

on:
pull_request:
types:
Expand All @@ -19,4 +20,3 @@ jobs:
preset: conventional-changelog-angular@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

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!'
})
23 changes: 6 additions & 17 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ jobs:

strategy:
matrix:
dependencies:
- locked
php-version:
- 8.0
- 7.4
operating-system:
- ubuntu-latest

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 --ignore-platform-reqs
- name: Install dependencies
run: composer install --no-interaction --no-progress --no-suggest

- name: Install highest dependencies
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: Rub static analysis
- name: Run static analysis
run: vendor/bin/psalm
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
.phpunit.result.cache
composer.lock
phpunit.xml
/vendor/
vendor/
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "xtreamwayz/psr-container-messenger",
"type": "library",
"description": "PSR Container compatible Symfony Messenger",
"license": "MIT",
"authors": [
Expand Down

0 comments on commit 8a7d612

Please sign in to comment.