Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Upgraded dependencies, added aeon-php/autmoation integration
Browse files Browse the repository at this point in the history
  • Loading branch information
norberttech committed Feb 14, 2021
1 parent a026132 commit 0419aaa
Show file tree
Hide file tree
Showing 14 changed files with 3,361 additions and 18 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: [norberttech]
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 -->
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "composer"
directory: "/"
schedule:
interval: "daily"
29 changes: 29 additions & 0 deletions .github/workflows/changelog-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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:
- 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\""
25 changes: 25 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "Documentation Linter"

on:
pull_request:
push:
branches:
- "1.x"

jobs:
documentation-linter:
name: "Documentation Linter"

runs-on: "ubuntu-latest"

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

- name: "MD Link Linter"
uses: "docker://norberttech/md-link-linter:latest"
with:
entrypoint: "/composer/vendor/bin/mdlinklint"
args: "--exclude=vendor ."


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 aeon-php/automation ${{ 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\""
51 changes: 51 additions & 0 deletions .github/workflows/static-analyze.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: "Static Analyze"

on:
pull_request:
push:
branches:
- "1.x"
schedule:
- cron: '* 8 * * *'

jobs:
static-analyze:
name: "Static Analyze"

runs-on: ${{ matrix.operating-system }}

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

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

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: pcov
tools: composer:v2
php-version: "${{ matrix.php-version }}"
ini-values: memory_limit=-1

- 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 locked dependencies"
run: "composer install --no-interaction --no-progress --no-suggest"

- name: "Static Analyze"
run: "composer static:analyze"
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/vendor/
composer.lock
*.cache
Loading

0 comments on commit 0419aaa

Please sign in to comment.