Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit babbc41

Browse files
committed
Reuse workflows from upstream
Not migrating the static analysis workflow since Psalm is not setup on this repository yet.
1 parent 19c5274 commit babbc41

2 files changed

Lines changed: 2 additions & 79 deletions

File tree

.github/workflows/coding-standards.yml

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -12,34 +12,4 @@ on:
1212
jobs:
1313
coding-standards:
1414
name: "Coding Standards"
15-
runs-on: "ubuntu-20.04"
16-
17-
strategy:
18-
matrix:
19-
php-version:
20-
- "7.4"
21-
22-
steps:
23-
- name: "Checkout"
24-
uses: "actions/checkout@v2"
25-
26-
- name: "Install PHP"
27-
uses: "shivammathur/setup-php@v2"
28-
with:
29-
coverage: "none"
30-
php-version: "${{ matrix.php-version }}"
31-
tools: "cs2pr"
32-
33-
- name: "Cache dependencies installed with Composer"
34-
uses: "actions/cache@v2"
35-
with:
36-
path: "~/.composer/cache"
37-
key: "php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}"
38-
restore-keys: "php-${{ matrix.php-version }}-composer-locked-"
39-
40-
- name: "Install dependencies with Composer"
41-
run: "composer install --no-interaction --no-progress --no-suggest"
42-
43-
# https://github.com/doctrine/.github/issues/3
44-
- name: "Run PHP_CodeSniffer"
45-
run: "vendor/bin/phpcs -q --no-colors --report=checkstyle | cs2pr"
15+
uses: "doctrine/.github/.github/workflows/[email protected]"

.github/workflows/release-on-milestone-closed.yml

Lines changed: 1 addition & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -8,51 +8,4 @@ on:
88
jobs:
99
release:
1010
name: "Git tag, release & create merge-up PR"
11-
runs-on: "ubuntu-20.04"
12-
13-
steps:
14-
- name: "Checkout"
15-
uses: "actions/checkout@v2"
16-
17-
- name: "Release"
18-
uses: "laminas/automatic-releases@v1"
19-
with:
20-
command-name: "laminas:automatic-releases:release"
21-
env:
22-
"GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }}
23-
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
24-
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
25-
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
26-
27-
- name: "Create Merge-Up Pull Request"
28-
uses: "laminas/automatic-releases@v1"
29-
with:
30-
command-name: "laminas:automatic-releases:create-merge-up-pull-request"
31-
env:
32-
"GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }}
33-
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
34-
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
35-
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
36-
37-
# Uncomment this step if the repository uses a "next minor as default
38-
# branch" policy.
39-
#
40-
# - name: "Create and/or Switch to new Release Branch"
41-
# uses: "laminas/automatic-releases@v1"
42-
# with:
43-
# command-name: "laminas:automatic-releases:switch-default-branch-to-next-minor"
44-
# env:
45-
# "GITHUB_TOKEN": ${{ secrets.ORGANIZATION_ADMIN_TOKEN }}
46-
# "SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
47-
# "GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
48-
# "GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
49-
50-
- name: "Create new milestones"
51-
uses: "laminas/automatic-releases@v1"
52-
with:
53-
command-name: "laminas:automatic-releases:create-milestones"
54-
env:
55-
"GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }}
56-
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
57-
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
58-
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
11+
uses: "doctrine/.github/.github/workflows/[email protected]"

0 commit comments

Comments
 (0)