Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adde integration with aeon-php/automation #218

Merged
merged 1 commit into from
Jan 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!-- Bellow section will be used to automatically generate changelog, please do not modify HTML code structure -->
<h2>Change Log</h2>
<div id="change-log">
<h4>Added</h4>
<ul id="added">
<!-- <li>Feature making everything better</li> -->
</ul>
<h4>Fixed</h4>
<ul id="fixed">
<!-- <li>Behavior that was incorrect</li> -->
</ul>
<h4>Changed</h4>
<ul id="changed">
<!-- <li>Something into something new</li> -->
</ul>
<h4>Removed</h4>
<ul id="removed">
<!-- <li>Something</li> -->
</ul>
<h4>Deprecated</h4>
<ul id="deprecated">
<!-- <li>Something is from now deprecated</li> -->
</ul>
<h4>Security</h4>
<ul id="security">
<!-- <li>Something that was security issue, is not an issue anymore</li> -->
</ul>
</div>
<hr/>

<h2>Description</h2>

<!-- Please provide a shore description of changes in this section, feel free to use markdown syntax -->
31 changes: 31 additions & 0 deletions .github/workflows/changelog-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "Changelog - Release Unreleased"

###################################################################
# WARNING - THIS ACTION WILL PUSH COMMIT DIRECTLY INTO REPOSITORY #
###################################################################

on:
push:
tags:
- '*'

jobs:
changelog-release-unreleased:
name: "Update Changelog - Release Unreleased"

runs-on: "ubuntu-latest"

steps:
- name: "Get tag name"
id: "tag-name"
run: |
tag=$(echo ${{ github.event.ref }} | cut -c11-)
echo "::set-output name=tag::$tag"

- name: "Update CHANGELOG"
uses: "docker://aeonphp/automation:latest"
env:
AEON_AUTOMATION_GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
entrypoint: "/composer/vendor/bin/automation"
args: "changelog:release:unreleased ${{ github.repository }} CHANGELOG.md ${{ steps.tag-name.outputs.tag }} --github-file-changelog-update"
38 changes: 38 additions & 0 deletions .github/workflows/changelog-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: "Changelog - Update Unreleased"

###################################################################
# WARNING - THIS ACTION WILL PUSH COMMIT DIRECTLY INTO REPOSITORY #
###################################################################

on:
push:
branches:
- 1.x

jobs:
changelog-update-unreleased:
name: "Changelog - Update Unreleased"

runs-on: "ubuntu-latest"

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

- name: "Restore Automation cache"
uses: "actions/cache@v2"
with:
path: |
cache
key: "${{ runner.os }}-automation-${{ hashFiles('**/CHANGELOG.md') }}"
restore-keys: |
${{ runner.os }}-automation-

- name: "Update CHANGELOG"
uses: "docker://aeonphp/automation:latest"
env:
AEON_AUTOMATION_GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
EON_AUTOMATION_CACHE_DIR: "/github/workspace/cache"
with:
entrypoint: "/composer/vendor/bin/automation"
args: "changelog:generate ${{ github.repository }} --github-file-update-path=CHANGELOG.md --skip-from=\"dependabot[bot]\" --skip-from=\"aeon-automation\""
28 changes: 21 additions & 7 deletions .github/workflows/mutation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,31 @@ jobs:
php-version: "${{ matrix.php-version }}"
ini-values: memory_limit=-1

- name: "Install tools"
run: "phive install --trust-gpg-keys E82B2FB314E9906E,CF1A108D0E7AE720,8A03EA3B385DBAA1,C5095986493B4AA0 --force-accept-unsigned"
- name: "Cache Phive dependencies"
uses: "actions/cache@v2"
with:
path: |
~/.phive
key: "${{ runner.os }}-phive-${{ hashFiles('**/phars.xml') }}"
restore-keys: |
${{ runner.os }}-phive-

- name: "Cache dependencies"
- name: "Get Composer Cache Directory"
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: "Cache Composer dependencies"
uses: "actions/cache@v2"
with:
path: |
~/.composer/cache
vendor
key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
restore-keys: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
${{ steps.composer-cache.outputs.dir }}
key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}-composer-${{ hashFiles('**/composer.lock') }}"
restore-keys: |
php-${{ matrix.php-version }}-${{ matrix.dependencies }}-composer-

- name: "Install tools"
run: "phive install --trust-gpg-keys E82B2FB314E9906E,CF1A108D0E7AE720,8A03EA3B385DBAA1,C5095986493B4AA0 --force-accept-unsigned"

- name: "Install lowest dependencies"
if: ${{ matrix.dependencies == 'lowest' }}
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/pull-request-description-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: "Pull Request Description Check"

on:
pull_request:
types: ["opened", "edited", "reopened", "ready_for_review"]

jobs:
pull-request-description-check:
name: "Pull Request Description"

runs-on: "ubuntu-latest"

steps:
- name: "Pull Request Description - Check"
uses: "docker://aeonphp/automation:latest"
env:
AEON_AUTOMATION_GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
entrypoint: "/composer/vendor/bin/automation"
args: "pull-request:description:check ${{ github.repository }} ${{ github.event.pull_request.number }} --skip-from=\"dependabot[bot]\""
25 changes: 25 additions & 0 deletions .github/workflows/release-description-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "Release - Description Update"

#########################################################
# WARNING - THIS ACTION WILL UPDATE RELEASE DESCRIPTION #
#########################################################

on:
release:
types:
- created

jobs:
release-description-update:
name: "Release - Description Update"

runs-on: "ubuntu-latest"

steps:
- name: "Update CHANGELOG"
uses: "docker://aeonphp/automation:latest"
env:
AEON_AUTOMATION_GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
entrypoint: "/composer/vendor/bin/automation"
args: "changelog:generate ${{ github.repository }} --tag=${{ github.event.release.tag_name }} --github-release-update --skip-from=\"dependabot[bot]\" --skip-from=\"aeon-automation\""
23 changes: 23 additions & 0 deletions .github/workflows/static-analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,29 @@ jobs:
ini-values: memory_limit=-1
tools: phive, composer:v2

- name: "Cache Phive dependencies"
uses: "actions/cache@v2"
with:
path: |
~/.phive
key: "${{ runner.os }}-phive-${{ hashFiles('**/phars.xml') }}"
restore-keys: |
${{ runner.os }}-phive-

- name: "Get Composer Cache Directory"
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: "Cache Composer dependencies"
uses: "actions/cache@v2"
with:
path: |
${{ steps.composer-cache.outputs.dir }}
key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}-composer-${{ hashFiles('**/composer.lock') }}"
restore-keys: |
php-${{ matrix.php-version }}-${{ matrix.dependencies }}-composer-

- name: "Install tools"
run: "phive install --trust-gpg-keys E82B2FB314E9906E,CF1A108D0E7AE720,8A03EA3B385DBAA1,C5095986493B4AA0 --force-accept-unsigned"

Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,29 @@ jobs:
ini-values: memory_limit=-1
tools: phive, composer:v2

- name: "Cache Phive dependencies"
uses: "actions/cache@v2"
with:
path: |
~/.phive
key: "${{ runner.os }}-phive-${{ hashFiles('**/phars.xml') }}"
restore-keys: |
${{ runner.os }}-phive-

- name: "Get Composer Cache Directory"
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: "Cache Composer dependencies"
uses: "actions/cache@v2"
with:
path: |
${{ steps.composer-cache.outputs.dir }}
key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}-composer-${{ hashFiles('**/composer.lock') }}"
restore-keys: |
php-${{ matrix.php-version }}-${{ matrix.dependencies }}-composer-

- name: "Install tools"
run: "phive install --trust-gpg-keys E82B2FB314E9906E,CF1A108D0E7AE720,8A03EA3B385DBAA1,C5095986493B4AA0 --force-accept-unsigned"

Expand Down
Loading