Skip to content

Commit aa2145f

Browse files
Copilotneilime
authored andcommitted
feat: implement first actions and workflow for PHP ecosystem
Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com>
1 parent cfb62a2 commit aa2145f

45 files changed

Lines changed: 8103 additions & 2 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.devcontainer/devcontainer.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "Alpine",
3+
"image": "mcr.microsoft.com/devcontainers/base:alpine-3.21",
4+
"features": {
5+
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
6+
"ghcr.io/devcontainers/features/github-cli:1": {},
7+
"ghcr.io/devcontainers-extra/features/act:1": {}
8+
},
9+
"customizations": {
10+
"vscode": {
11+
"extensions": [
12+
"eamodio.gitlens",
13+
"github.vscode-github-actions",
14+
"github.copilot",
15+
"github.copilot-chat",
16+
"ms-vscode.makefile-tools",
17+
"esbenp.prettier-vscode"
18+
]
19+
}
20+
}
21+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: Bug report
3+
about: Create a bug report
4+
title: ""
5+
labels: bug, needs triage
6+
assignees: ""
7+
---
8+
9+
<!--- Please direct any generic questions related to actions to our support community forum at https://github.qkg1.topmunity/c/code-to-cloud/github-actions/41 --->
10+
<!--- Before opening up a new bug report, please make sure to check for similar existing issues -->
11+
12+
**Description:**
13+
A clear and concise description of what the bug is.
14+
15+
**Action version:**
16+
Specify the action version
17+
18+
**Platform:**
19+
20+
- [ ] Ubuntu
21+
- [ ] macOS
22+
- [ ] Windows
23+
24+
**Runner type:**
25+
26+
- [ ] Hosted
27+
- [ ] Self-hosted
28+
29+
**Tools version:**
30+
31+
<!--- Please specify versions of node and package manager (npm, yarn, pnpm and etc)-->
32+
33+
**Repro steps:**
34+
A description with steps to reproduce the issue. If you have a public example or repository to share, please provide the link.
35+
36+
**Expected behavior:**
37+
A description of what you expected to happen.
38+
39+
**Actual behavior:**
40+
A description of what is actually happening.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ""
5+
labels: ""
6+
assignees: ""
7+
---
8+
9+
**Is your feature request related to a problem? Please describe.**
10+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
11+
12+
**Describe the solution you'd like**
13+
A clear and concise description of what you want to happen.
14+
15+
**Describe alternatives you've considered**
16+
A clear and concise description of any alternative solutions or features you've considered.
17+
18+
**Additional context**
19+
Add any other context or screenshots about the feature request here.

.github/dependabot.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: docker
4+
open-pull-requests-limit: 20
5+
directory: "/"
6+
schedule:
7+
interval: weekly
8+
day: friday
9+
time: "04:00"
10+
groups:
11+
docker-dependencies:
12+
patterns:
13+
- "*"
14+
15+
- package-ecosystem: github-actions
16+
open-pull-requests-limit: 20
17+
directories:
18+
- "/"
19+
- "/actions/**/*"
20+
schedule:
21+
interval: weekly
22+
day: friday
23+
time: "04:00"
24+
groups:
25+
github-actions-dependencies:
26+
patterns:
27+
- "*"
28+
29+
- package-ecosystem: php
30+
open-pull-requests-limit: 20
31+
versioning-strategy: increase
32+
directories:
33+
- "/tests/php-project"
34+
schedule:
35+
interval: weekly
36+
day: friday
37+
time: "04:00"
38+
groups:
39+
php-dependencies:
40+
patterns:
41+
- "*"
42+
43+
- package-ecosystem: "devcontainers"
44+
open-pull-requests-limit: 20
45+
directory: "/"
46+
schedule:
47+
interval: weekly
48+
day: friday
49+
time: "04:00"

.github/linters/.jscpd.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"threshold": 5,
3+
"ignore": ["**/vendor/*"]
4+
}

.github/workflows/__greetings.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Greetings
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
pull_request_target:
7+
branches: [main]
8+
9+
permissions:
10+
contents: read
11+
issues: write
12+
pull-requests: write
13+
14+
jobs:
15+
greetings:
16+
uses: hoverkraft-tech/ci-github.qkg1.topmon/.github/workflows/greetings.yml@753288393de1f3d92f687a6761d236ca800f5306 # 0.28.1

.github/workflows/__main-ci.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Internal - Main - Continuous Integration
2+
3+
on:
4+
push:
5+
branches: [main]
6+
tags: ["*"]
7+
8+
workflow_dispatch:
9+
10+
schedule:
11+
- cron: "25 8 * * 1"
12+
13+
permissions: {}
14+
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: true
18+
19+
jobs:
20+
ci:
21+
uses: ./.github/workflows/__shared-ci.yml
22+
# jscpd:ignore-start
23+
permissions:
24+
actions: read
25+
contents: read
26+
packages: write
27+
pull-requests: write
28+
id-token: write
29+
issues: read
30+
security-events: write
31+
statuses: write
32+
# jscpd:ignore-end
33+
secrets: inherit
34+
35+
release:
36+
needs: ci
37+
if: github.event_name != 'schedule'
38+
uses: hoverkraft-tech/ci-github-publish/.github/workflows/release-actions.yml@ecafdeac18a6a6dcc01058cd53ac7431bedb5c3b # 0.14.1
39+
permissions:
40+
contents: read
41+
with:
42+
update-all: ${{ (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')) || github.event_name == 'workflow_dispatch' }}
43+
github-app-id: ${{ vars.CI_BOT_APP_ID }}
44+
secrets:
45+
github-app-key: ${{ secrets.CI_BOT_APP_PRIVATE_KEY }}
46+
47+
sync-docs:
48+
needs: release
49+
if: github.event_name != 'schedule' && github.ref_name == github.event.repository.default_branch && needs.release.outputs.artifact-id
50+
uses: hoverkraft-tech/public-docs/.github/workflows/sync-docs-dispatcher.yml@c40c17f7d6a8090950b3ef4bfc70502707a6bb9f # 0.3.0
51+
permissions:
52+
contents: read
53+
with:
54+
artifact-id: ${{ needs.release.outputs.artifact-id }}
55+
github-app-id: ${{ vars.CI_BOT_APP_ID }}
56+
secrets:
57+
github-app-key: ${{ secrets.CI_BOT_APP_PRIVATE_KEY }}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Need fix to Issue
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
inputs:
9+
#checkov:skip=CKV_GHA_7: required
10+
manual-commit-ref:
11+
description: "The SHA of the commit to get the diff for"
12+
required: true
13+
manual-base-ref:
14+
description: "By default, the commit entered above is compared to the one directly before it; to go back further, enter an earlier SHA here"
15+
required: false
16+
17+
permissions:
18+
contents: read
19+
issues: write
20+
21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.ref }}
23+
cancel-in-progress: true
24+
25+
jobs:
26+
main:
27+
uses: hoverkraft-tech/ci-github.qkg1.topmon/.github/workflows/need-fix-to-issue.yml@753288393de1f3d92f687a6761d236ca800f5306 # 0.28.1
28+
with:
29+
manual-commit-ref: ${{ inputs.manual-commit-ref }}
30+
manual-base-ref: ${{ inputs.manual-base-ref }}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Internal - Pull request - Continuous Integration
2+
3+
on:
4+
merge_group:
5+
pull_request:
6+
branches: [main]
7+
8+
permissions: {}
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
ci:
16+
uses: ./.github/workflows/__shared-ci.yml
17+
permissions:
18+
actions: read
19+
contents: read
20+
packages: write
21+
pull-requests: write
22+
id-token: write
23+
issues: read
24+
security-events: write
25+
statuses: write
26+
secrets: inherit
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: "Pull Request - Semantic Lint"
3+
4+
on:
5+
pull_request_target:
6+
types:
7+
- opened
8+
- edited
9+
- synchronize
10+
11+
permissions: {}
12+
13+
jobs:
14+
main:
15+
uses: hoverkraft-tech/ci-github.qkg1.topmon/.github/workflows/semantic-pull-request.yml@753288393de1f3d92f687a6761d236ca800f5306 # 0.28.1
16+
permissions:
17+
contents: write
18+
pull-requests: write

0 commit comments

Comments
 (0)