Skip to content

Commit 19e7dba

Browse files
committed
refactor: run PHP version discovery on native Node.js
1 parent 2282d76 commit 19e7dba

36 files changed

Lines changed: 33585 additions & 2327 deletions

‎.gitattributes‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
actions/**/dist/** linguist-generated=true -whitespace

‎.github/codeql/config.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
name: Maintained JavaScript sources
2+
paths-ignore:
3+
- actions/**/dist/**

‎.github/dependabot.yml‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,24 @@ updates:
5656
- "*"
5757
cooldown:
5858
default-days: 7
59+
- package-ecosystem: npm
60+
commit-message:
61+
prefix: build
62+
include: scope
63+
open-pull-requests-limit: 20
64+
versioning-strategy: increase
65+
directories:
66+
- /actions/**/*
67+
schedule:
68+
interval: weekly
69+
day: friday
70+
time: "04:00"
71+
groups:
72+
npm-dependencies:
73+
patterns:
74+
- "*"
75+
cooldown:
76+
default-days: 7
5977
- package-ecosystem: devcontainers
6078
commit-message:
6179
prefix: build

‎.github/linters/.codespellrc‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[codespell]
2+
skip = *actions/*/dist/*

‎.github/linters/.jscpd.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"threshold": 5,
33
"ignore": [
44
"**/vendor/**",
5+
"actions/**/dist/**",
56
"**/actions/**/README.md",
67
"**/.github/workflows/*.md"
78
]

‎.github/renovate.json‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,8 @@
4343
"datasourceTemplate": "github-releases",
4444
"depNameTemplate": "composer/composer"
4545
}
46+
],
47+
"gitIgnoredAuthors": [
48+
"128996893+hoverkraft-bot[bot]@users.noreply.github.com"
4649
]
4750
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Internal - Commit action distributions
2+
3+
on: # zizmor: ignore[dangerous-triggers] Trusted writer validates origin, actor, PR head and paths; it never executes PR code.
4+
workflow_run:
5+
workflows: [Internal - Rebuild action distributions]
6+
types: [completed]
7+
8+
permissions: {}
9+
10+
jobs:
11+
distributions:
12+
uses: hoverkraft-tech/ci-github-common/.github/workflows/action-distributions.yml@d07ee49b460ae2f3815804b5153fe918092aa321 # 4.2.0
13+
permissions:
14+
actions: read
15+
contents: read
16+
pull-requests: read
17+
with:
18+
pull-request-authors: |
19+
["dependabot", "renovate", {"login":"hoverkraft-bot[bot]","id":128996893,"branch-prefix":"renovate/"}]
20+
github-app-client-id: ${{ vars.CI_BOT_APP_CLIENT_ID }}
21+
secrets:
22+
github-app-key: ${{ secrets.CI_BOT_APP_PRIVATE_KEY }}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Internal - Rebuild action distributions
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
permissions: {}
8+
9+
jobs:
10+
distributions:
11+
uses: hoverkraft-tech/ci-github-common/.github/workflows/action-distributions.yml@d07ee49b460ae2f3815804b5153fe918092aa321 # 4.2.0
12+
permissions:
13+
actions: read
14+
contents: read
15+
pull-requests: read
16+
with:
17+
pull-request-authors: |
18+
["dependabot", "renovate", {"login":"hoverkraft-bot[bot]","id":128996893,"branch-prefix":"renovate/"}]

‎.github/workflows/__shared-ci.yml‎

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ on:
33
workflow_call: null
44
permissions: {}
55
jobs:
6-
linter:
6+
lint:
7+
name: linter
78
uses: hoverkraft-tech/ci-github-common/.github/workflows/linter.yml@d07ee49b460ae2f3815804b5153fe918092aa321 # 4.2.0
89
permissions:
910
contents: read
@@ -14,6 +15,7 @@ jobs:
1415
actions: read
1516
security-events: write
1617
with:
18+
comment: false
1719
linter-env: |-
1820
VALIDATE_PHP_BUILTIN=false
1921
VALIDATE_PHP_PHPCS=false
@@ -29,6 +31,9 @@ jobs:
2931
permissions:
3032
contents: read
3133
id-token: write
34+
packages: read
35+
pull-requests: write
36+
security-events: write
3237
test-action-setup-php:
3338
uses: $/.github/workflows/__test-action-setup-php.yml
3439
permissions:
@@ -76,3 +81,16 @@ jobs:
7681
uses: $/.github/workflows/__test-workflow-documentation.yml
7782
permissions:
7883
contents: read
84+
test-bundled-actions:
85+
uses: hoverkraft-tech/ci-github-common/.github/workflows/test-action-distributions.yml@d07ee49b460ae2f3815804b5153fe918092aa321 # 4.2.0
86+
permissions:
87+
contents: read
88+
reports:
89+
needs: [lint, test-action-get-php-versions]
90+
if: always()
91+
uses: hoverkraft-tech/ci-github-common/.github/workflows/ci-reports.yml@d07ee49b460ae2f3815804b5153fe918092aa321 # 4.2.0
92+
permissions:
93+
contents: read
94+
pull-requests: write
95+
with:
96+
job-results: ${{ toJSON(needs) }}

‎.github/workflows/__test-action-get-php-versions.yml‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,19 @@ on:
44
permissions: {}
55
jobs:
66
unit:
7-
uses: $/.github/workflows/continuous-integration.yml
7+
uses: hoverkraft-tech/ci-github-nodejs/.github/workflows/continuous-integration.yml@fbd3522b68c55a6314aadbededaa487825ba9b35 # 3.0.0
88
permissions:
99
contents: read
1010
id-token: write
11+
packages: read
12+
pull-requests: write
13+
security-events: write
1114
with:
1215
working-directory: actions/get-php-versions
13-
lint: "false"
14-
dependency-review: false
16+
build: ""
17+
lint: ""
18+
code-ql: '{"languages":"typescript","config-file":".github/codeql/config.yml"}'
19+
test: '{"comment":false,"report-group":"test-action-get-php-versions"}'
1520
integration:
1621
runs-on: ubuntu-latest
1722
permissions:

0 commit comments

Comments
 (0)