Skip to content

Commit

Permalink
Merge pull request #553 from wayofdev/ci/updates
Browse files Browse the repository at this point in the history
  • Loading branch information
lotyp authored Aug 7, 2024
2 parents 3a7b68a + f269b04 commit 7ac5e97
Show file tree
Hide file tree
Showing 8 changed files with 664 additions and 576 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@ on: # yamllint disable-line rule:truthy
pull_request:
branches:
- master
push:
branches:
- master

name: 🧹 Fix PHP coding standards

jobs:
commit-linting:
timeout-minutes: 4
runs-on: ubuntu-latest
concurrency:
cancel-in-progress: true
group: commit-linting-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
permissions:
contents: read
pull-requests: read
steps:
- name: 📦 Check out the codebase
uses: actions/[email protected].6
uses: actions/[email protected].7

- name: 🧐 Lint commits using "commitlint"
uses: wagoid/[email protected]
Expand All @@ -32,12 +32,15 @@ jobs:
yaml-linting:
timeout-minutes: 4
runs-on: ubuntu-latest
concurrency:
cancel-in-progress: true
group: yaml-linting-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
permissions:
contents: read
pull-requests: read
steps:
- name: 📦 Check out the codebase
uses: actions/[email protected].6
uses: actions/[email protected].7

- name: 🧐 Lint YAML files
uses: ibiqlik/[email protected]
Expand All @@ -54,7 +57,7 @@ jobs:
group: markdown-linting-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
steps:
- name: 📦 Check out the codebase
uses: actions/[email protected].6
uses: actions/[email protected].7

- name: 🧐 Lint Markdown files
uses: DavidAnson/[email protected]
Expand Down Expand Up @@ -91,7 +94,7 @@ jobs:
tools: phive

- name: 📦 Check out the codebase
uses: actions/[email protected].6
uses: actions/[email protected].7

- name: 🛠️ Setup problem matchers
run: |
Expand Down Expand Up @@ -155,7 +158,7 @@ jobs:
coverage: none

- name: 📦 Check out the codebase
uses: actions/[email protected].6
uses: actions/[email protected].7

- name: 🛠️ Setup problem matchers
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 🎉 Create release
uses: googleapis/[email protected].1
uses: googleapis/[email protected].3
id: release
with:
token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependency-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:

steps:
- name: 📦 Check out the codebase
uses: actions/[email protected].6
uses: actions/[email protected].7

- name: 🛠️ Setup PHP
uses: shivammathur/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/refactoring.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- locked
steps:
- name: 📦 Check out the codebase
uses: actions/[email protected].6
uses: actions/[email protected].7

- name: 🛠️ Setup PHP
uses: shivammathur/[email protected]
Expand All @@ -57,7 +57,7 @@ jobs:
key: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}
restore-keys: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-

- name: 📥 Install "${{ matrix.dependencies }}" dependencies
- name: 📥 Install "${{ matrix.dependencies }}" dependencies with composer
uses: wayofdev/gh-actions/actions/composer/[email protected]
with:
dependencies: ${{ matrix.dependencies }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/security-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- locked
steps:
- name: 📦 Check out the codebase
uses: actions/[email protected].6
uses: actions/[email protected].7

- name: 🛠️ Setup PHP
uses: shivammathur/[email protected]
Expand All @@ -54,7 +54,7 @@ jobs:
key: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}
restore-keys: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-

- name: 📥 Install "${{ matrix.dependencies }}" dependencies
- name: 📥 Install "${{ matrix.dependencies }}" dependencies with composer
uses: wayofdev/gh-actions/actions/composer/[email protected]
with:
dependencies: ${{ matrix.dependencies }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- locked
steps:
- name: 📦 Check out the codebase
uses: actions/[email protected].6
uses: actions/[email protected].7

- name: 🛠️ Setup PHP
uses: shivammathur/[email protected]
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
- locked
steps:
- name: 📦 Check out the codebase
uses: actions/[email protected].6
uses: actions/[email protected].7

- name: 🛠️ Setup PHP
uses: shivammathur/[email protected]
Expand All @@ -121,7 +121,7 @@ jobs:
key: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}
restore-keys: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-

- name: 📥 Install "${{ matrix.dependencies }}" dependencies
- name: 📥 Install "${{ matrix.dependencies }}" dependencies with composer
uses: wayofdev/gh-actions/actions/composer/[email protected]
with:
dependencies: ${{ matrix.dependencies }}
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
---

name: 🧪 Unit testing

on: # yamllint disable-line rule:truthy
pull_request:
branches:
Expand All @@ -10,6 +8,8 @@ on: # yamllint disable-line rule:truthy
branches:
- master

name: 🧪 Unit testing

jobs:
code-coverage:
timeout-minutes: 4
Expand All @@ -28,7 +28,7 @@ jobs:
- locked
steps:
- name: 📦 Check out the codebase
uses: actions/[email protected].6
uses: actions/[email protected].7

- name: 🛠️ Setup PHP
uses: shivammathur/[email protected]
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
key: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}
restore-keys: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-

- name: 📥 Install "${{ matrix.dependencies }}" dependencies
- name: 📥 Install "${{ matrix.dependencies }}" dependencies with composer
uses: wayofdev/gh-actions/actions/composer/[email protected]
with:
dependencies: ${{ matrix.dependencies }}
Expand All @@ -65,7 +65,7 @@ jobs:
run: composer test:cc

- name: 📤 Upload code coverage report to Codecov
uses: codecov/codecov-action@v4.4.1
uses: codecov/codecov-action@v4.5.0
with:
files: .build/phpunit/logs/clover.xml
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -91,7 +91,7 @@ jobs:
- highest
steps:
- name: 📦 Check out the codebase
uses: actions/[email protected].6
uses: actions/[email protected].7

- name: 🛠️ Setup PHP
uses: shivammathur/[email protected]
Expand Down Expand Up @@ -148,7 +148,7 @@ jobs:
- locked
steps:
- name: 📦 Check out the codebase
uses: actions/[email protected].6
uses: actions/[email protected].7

- name: 🛠️ Setup PHP
uses: shivammathur/[email protected]
Expand Down Expand Up @@ -205,7 +205,7 @@ jobs:
- locked
steps:
- name: 📦 Check out the codebase
uses: actions/[email protected].6
uses: actions/[email protected].7

- name: 🛠️ Setup PHP
uses: shivammathur/[email protected]
Expand Down
Loading

0 comments on commit 7ac5e97

Please sign in to comment.