Skip to content

Commit 3b80c1d

Browse files
authored
Merge branch 'master' into release-please--branches--master--components--phony
2 parents 3bcddd8 + e1377d4 commit 3b80c1d

12 files changed

Lines changed: 130 additions & 27 deletions

.github/phar/keys.asc.gpg

1.08 KB
Binary file not shown.
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
---
2+
3+
on: # yamllint disable-line rule:truthy
4+
release:
5+
types:
6+
- published
7+
workflow_dispatch:
8+
9+
name: 📦 Build PHAR release
10+
11+
jobs:
12+
build-release:
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 4
15+
strategy:
16+
matrix:
17+
php-version:
18+
- '8.3'
19+
dependencies:
20+
- locked
21+
env:
22+
PHONY_PHAR: ".build/phar/phony.phar"
23+
PHONY_PHAR_SIGNATURE: ".build/phar/phony.phar.asc"
24+
GPG_KEYS: ".build/phar/keys.asc"
25+
GPG_KEYS_ENCRYPTED: ".github/phar/keys.asc.gpg"
26+
steps:
27+
- name: 📦 Check out the codebase
28+
uses: actions/checkout@v4
29+
30+
- name: 🛠️ Setup PHP
31+
uses: shivammathur/setup-php@2.33.0
32+
with:
33+
php-version: ${{ matrix.php-version }}
34+
extensions: none, ctype, dom, json, mbstring, phar, simplexml, tokenizer, xml, xmlwriter, sockets, intl, bcmath, iconv
35+
ini-values: error_reporting=E_ALL
36+
coverage: none
37+
tools: phive
38+
39+
- name: 🛠️ Setup problem matchers
40+
run: |
41+
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
42+
43+
- name: 🤖 Validate composer.json and composer.lock
44+
run: composer validate --ansi --strict
45+
46+
- name: 🔍 Get composer cache directory
47+
uses: wayofdev/gh-actions/actions/composer/get-cache-directory@v3.3.0
48+
49+
- name: ♻️ Restore cached dependencies installed with composer
50+
uses: actions/cache@v4
51+
with:
52+
path: ${{ env.COMPOSER_CACHE_DIR }}
53+
key: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}
54+
restore-keys: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-
55+
56+
- name: 📥 Install "${{ matrix.dependencies }}" dependencies with composer
57+
uses: wayofdev/gh-actions/actions/composer/install@v3.3.0
58+
with:
59+
dependencies: ${{ matrix.dependencies }}
60+
61+
- name: 📥 Install dependencies with phive
62+
uses: wayofdev/gh-actions/actions/phive/install@v3.3.0
63+
with:
64+
phive-home: '.phive'
65+
trust-gpg-keys: '0xC00543248C87FB13,0x033E5F8D801A2F8D,0x2DF45277AEF09A2F'
66+
67+
- name: 🔍 Validate configuration for box-project/box
68+
run: .phive/box validate box.json.dist --ansi
69+
70+
- name: 🤖 Compile phony.phar with box-project/box
71+
run: .phive/box compile --ansi
72+
73+
- name: 💥 Show info about phony.phar with box-project/box
74+
run: .phive/box info ${{ env.PHONY_PHAR }} --ansi
75+
76+
- name: 🤔 Run phony.phar help command
77+
run: ${{ env.PHONY_PHAR }} --help
78+
79+
- name: 🔍 Show gpg version
80+
run: gpg --version
81+
82+
- name: 🔑 Decrypt keys.asc.gpg with gpg
83+
run: gpg --batch --output ${{ env.GPG_KEYS }} --passphrase "${{ secrets.GPG_DECRYPT_PASSPHRASE }}" --yes --decrypt ${{ env.GPG_KEYS_ENCRYPTED }}
84+
85+
- name: 📥 Import keys from keys.asc with gpg
86+
run: gpg --batch --import ${{ env.GPG_KEYS }}
87+
88+
- name: 🔐 Sign phony.phar with gpg
89+
run: gpg --armor --local-user "${{ secrets.GPG_LOCAL_USER }}" --output ${{ env.PHONY_PHAR_SIGNATURE }} --passphrase "${{ secrets.GPG_KEY_PASSPHRASE }}" --pinentry-mode loopback --yes --detach-sig ${{ env.PHONY_PHAR }}
90+
91+
- name: ❎ Remove decrypted keys.asc
92+
run: rm ${{ env.GPG_KEYS }}
93+
94+
- name: 📤 Upload release assets
95+
uses: softprops/action-gh-release@v2.5.0
96+
if: startsWith(github.ref, 'refs/tags/')
97+
with:
98+
token: "${{ secrets.GITHUB_TOKEN }}"
99+
files: |
100+
${{ env.PHONY_PHAR }}
101+
${{ env.PHONY_PHAR_SIGNATURE }}
102+
103+
...

.github/workflows/coding-standards.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
pull-requests: read
2020
steps:
2121
- name: 📦 Check out the codebase
22-
uses: actions/checkout@v4.1.7
22+
uses: actions/checkout@v4.3.1
2323

2424
- name: 🧐 Lint commits using "commitlint"
2525
uses: wagoid/commitlint-github-action@v6.0.2
@@ -40,7 +40,7 @@ jobs:
4040
pull-requests: read
4141
steps:
4242
- name: 📦 Check out the codebase
43-
uses: actions/checkout@v4.1.7
43+
uses: actions/checkout@v4.3.1
4444

4545
- name: 🧐 Lint YAML files
4646
uses: ibiqlik/action-yamllint@v3.1.1
@@ -57,7 +57,7 @@ jobs:
5757
group: markdown-linting-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
5858
steps:
5959
- name: 📦 Check out the codebase
60-
uses: actions/checkout@v4.1.7
60+
uses: actions/checkout@v4.3.1
6161

6262
- name: 🧐 Lint Markdown files
6363
uses: DavidAnson/markdownlint-cli2-action@v16.0.0
@@ -94,7 +94,7 @@ jobs:
9494
tools: phive
9595

9696
- name: 📦 Check out the codebase
97-
uses: actions/checkout@v4.1.7
97+
uses: actions/checkout@v4.3.1
9898

9999
- name: 🛠️ Setup problem matchers
100100
run: |
@@ -107,7 +107,7 @@ jobs:
107107
uses: wayofdev/gh-actions/actions/composer/get-cache-directory@v3.3.0
108108

109109
- name: ♻️ Restore cached dependencies installed with composer
110-
uses: actions/cache@v4.2.3
110+
uses: actions/cache@v4.3.0
111111
with:
112112
path: ${{ env.COMPOSER_CACHE_DIR }}
113113
key: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}
@@ -158,7 +158,7 @@ jobs:
158158
coverage: none
159159

160160
- name: 📦 Check out the codebase
161-
uses: actions/checkout@v4.1.7
161+
uses: actions/checkout@v4.3.1
162162

163163
- name: 🛠️ Setup problem matchers
164164
run: |
@@ -171,7 +171,7 @@ jobs:
171171
uses: wayofdev/gh-actions/actions/composer/get-cache-directory@v3.3.0
172172

173173
- name: ♻️ Restore cached dependencies installed with composer
174-
uses: actions/cache@v4.2.3
174+
uses: actions/cache@v4.3.0
175175
with:
176176
path: ${{ env.COMPOSER_CACHE_DIR }}
177177
key: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}

.github/workflows/dependency-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141

4242
steps:
4343
- name: 📦 Check out the codebase
44-
uses: actions/checkout@v4.1.7
44+
uses: actions/checkout@v4.3.1
4545

4646
- name: 🛠️ Setup PHP
4747
uses: shivammathur/setup-php@2.33.0
@@ -62,7 +62,7 @@ jobs:
6262
uses: wayofdev/gh-actions/actions/composer/get-cache-directory@v3.3.0
6363

6464
- name: ♻️ Restore cached dependencies installed with composer
65-
uses: actions/cache@v4.2.3
65+
uses: actions/cache@v4.3.0
6666
with:
6767
path: ${{ env.COMPOSER_CACHE_DIR }}
6868
key: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}

.github/workflows/refactoring.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- locked
3232
steps:
3333
- name: 📦 Check out the codebase
34-
uses: actions/checkout@v4.1.7
34+
uses: actions/checkout@v4.3.1
3535

3636
- name: 🛠️ Setup PHP
3737
uses: shivammathur/setup-php@2.33.0
@@ -51,7 +51,7 @@ jobs:
5151
uses: wayofdev/gh-actions/actions/composer/get-cache-directory@v3.3.0
5252

5353
- name: ♻️ Restore cached dependencies installed with composer
54-
uses: actions/cache@v4.2.3
54+
uses: actions/cache@v4.3.0
5555
with:
5656
path: ${{ env.COMPOSER_CACHE_DIR }}
5757
key: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}

.github/workflows/security-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- locked
2929
steps:
3030
- name: 📦 Check out the codebase
31-
uses: actions/checkout@v4.1.7
31+
uses: actions/checkout@v4.3.1
3232

3333
- name: 🛠️ Setup PHP
3434
uses: shivammathur/setup-php@2.33.0
@@ -48,7 +48,7 @@ jobs:
4848
uses: wayofdev/gh-actions/actions/composer/get-cache-directory@v3.3.0
4949

5050
- name: ♻️ Restore cached dependencies installed with composer
51-
uses: actions/cache@v4.2.3
51+
uses: actions/cache@v4.3.0
5252
with:
5353
path: ${{ env.COMPOSER_CACHE_DIR }}
5454
key: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}

.github/workflows/static-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- locked
4545
steps:
4646
- name: 📦 Check out the codebase
47-
uses: actions/checkout@v4.1.7
47+
uses: actions/checkout@v4.3.1
4848

4949
- name: 🛠️ Setup PHP
5050
uses: shivammathur/setup-php@2.33.0
@@ -64,7 +64,7 @@ jobs:
6464
uses: wayofdev/gh-actions/actions/composer/get-cache-directory@v3.3.0
6565

6666
- name: ♻️ Restore cached dependencies installed with composer
67-
uses: actions/cache@v4.2.3
67+
uses: actions/cache@v4.3.0
6868
with:
6969
path: ${{ env.COMPOSER_CACHE_DIR }}
7070
key: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}
@@ -95,7 +95,7 @@ jobs:
9595
- locked
9696
steps:
9797
- name: 📦 Check out the codebase
98-
uses: actions/checkout@v4.1.7
98+
uses: actions/checkout@v4.3.1
9999

100100
- name: 🛠️ Setup PHP
101101
uses: shivammathur/setup-php@2.33.0
@@ -115,7 +115,7 @@ jobs:
115115
uses: wayofdev/gh-actions/actions/composer/get-cache-directory@v3.3.0
116116

117117
- name: ♻️ Restore cached dependencies installed with composer
118-
uses: actions/cache@v4.2.3
118+
uses: actions/cache@v4.3.0
119119
with:
120120
path: ${{ env.COMPOSER_CACHE_DIR }}
121121
key: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}

.github/workflows/testing.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- locked
2929
steps:
3030
- name: 📦 Check out the codebase
31-
uses: actions/checkout@v4.1.7
31+
uses: actions/checkout@v4.3.1
3232

3333
- name: 🛠️ Setup PHP
3434
uses: shivammathur/setup-php@2.33.0
@@ -50,7 +50,7 @@ jobs:
5050
uses: wayofdev/gh-actions/actions/composer/get-cache-directory@v3.3.0
5151

5252
- name: ♻️ Restore cached dependencies installed with composer
53-
uses: actions/cache@v4.2.3
53+
uses: actions/cache@v4.3.0
5454
with:
5555
path: ${{ env.COMPOSER_CACHE_DIR }}
5656
key: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}
@@ -92,7 +92,7 @@ jobs:
9292
- highest
9393
steps:
9494
- name: 📦 Check out the codebase
95-
uses: actions/checkout@v4.1.7
95+
uses: actions/checkout@v4.3.1
9696

9797
- name: 🛠️ Setup PHP
9898
uses: shivammathur/setup-php@2.33.0
@@ -114,7 +114,7 @@ jobs:
114114
uses: wayofdev/gh-actions/actions/composer/get-cache-directory@v3.3.0
115115

116116
- name: ♻️ Restore cached dependencies installed with composer
117-
uses: actions/cache@v4.2.3
117+
uses: actions/cache@v4.3.0
118118
with:
119119
path: ${{ env.COMPOSER_CACHE_DIR }}
120120
key: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}
@@ -149,7 +149,7 @@ jobs:
149149
- locked
150150
steps:
151151
- name: 📦 Check out the codebase
152-
uses: actions/checkout@v4.1.7
152+
uses: actions/checkout@v4.3.1
153153

154154
- name: 🛠️ Setup PHP
155155
uses: shivammathur/setup-php@2.33.0
@@ -171,7 +171,7 @@ jobs:
171171
uses: wayofdev/gh-actions/actions/composer/get-cache-directory@v3.3.0
172172

173173
- name: ♻️ Restore cached dependencies installed with composer
174-
uses: actions/cache@v4.2.3
174+
uses: actions/cache@v4.3.0
175175
with:
176176
path: ${{ env.COMPOSER_CACHE_DIR }}
177177
key: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}
@@ -206,7 +206,7 @@ jobs:
206206
- locked
207207
steps:
208208
- name: 📦 Check out the codebase
209-
uses: actions/checkout@v4.1.7
209+
uses: actions/checkout@v4.3.1
210210

211211
- name: 🛠️ Setup PHP
212212
uses: shivammathur/setup-php@2.33.0
@@ -226,7 +226,7 @@ jobs:
226226
uses: wayofdev/gh-actions/actions/composer/get-cache-directory@v3.3.0
227227

228228
- name: ♻️ Restore cached dependencies installed with composer
229-
uses: actions/cache@v4.2.3
229+
uses: actions/cache@v4.3.0
230230
with:
231231
path: ${{ env.COMPOSER_CACHE_DIR }}
232232
key: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@
3232

3333
<br>
3434

35-
# Phony: All in one PHP toolchain
35+
# Phony — Your PHP Quality Stable
3636

3737
This package @todo

assets/logo.png

-74.6 KB
Loading

0 commit comments

Comments
 (0)