-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: bump Pskel v1.0.0 * restore build and library test
- Loading branch information
Showing
21 changed files
with
519 additions
and
310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,16 @@ | ||
{ | ||
"name": "colopl_bc_dev", | ||
"build": { | ||
"args": { | ||
"IMAGE": "php", | ||
"TAG": "8.3-cli" | ||
} | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"ms-vscode.cpptools", | ||
"ms-vscode.cpptools-extension-pack", | ||
"maelvalais.autoconf" | ||
] | ||
} | ||
}, | ||
"context": "../", | ||
"dockerFile": "../Dockerfile", | ||
"runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ], | ||
"workspaceFolder": "/usr/src/php/ext/extension", | ||
"workspaceMount": "source=./ext,target=/usr/src/php/ext/extension,type=bind,consistency=cached" | ||
"name": "Pskel (for Codespaces)", | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"ms-vscode.cpptools", | ||
"ms-vscode.cpptools-extension-pack", | ||
"maelvalais.autoconf", | ||
"ms-azuretools.vscode-docker", | ||
"editorconfig.editorconfig" | ||
] | ||
} | ||
}, | ||
"dockerComposeFile": "./../compose.yaml", | ||
"service": "shell" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "Pskel (for Local)", | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"ms-vscode.cpptools", | ||
"ms-vscode.cpptools-extension-pack", | ||
"maelvalais.autoconf", | ||
"ms-azuretools.vscode-docker", | ||
"editorconfig.editorconfig" | ||
] | ||
} | ||
}, | ||
"dockerComposeFile": "./../../compose.yaml", | ||
"service": "shell", | ||
"mounts": [ | ||
"source=${localWorkspaceFolder},target=/workspaces/pskel,type=bind,consistency=cached" | ||
], | ||
"workspaceFolder": "/workspaces/pskel" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
.git | ||
**/.git | ||
**/README.md | ||
**/LICENSE | ||
**/.editorconfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# https://editorconfig.org/ | ||
|
||
root = true | ||
|
||
[*] | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
end_of_line = lf | ||
charset = utf-8 | ||
tab_width = 4 | ||
|
||
[{*.{awk,bat,c,cpp,d,dasc,h,l,re,skl,w32,y},Makefile*}] | ||
indent_size = 4 | ||
indent_style = tab | ||
|
||
[*.{dtd,html,inc,php,phpt,rng,wsdl,xml,xsd,xsl}] | ||
indent_size = 4 | ||
indent_style = space | ||
|
||
[*.{ac,m4,sh,yml}] | ||
indent_size = 2 | ||
indent_style = space | ||
|
||
[*.md] | ||
indent_style = space | ||
max_line_length = 80 | ||
|
||
[COMMIT_EDITMSG] | ||
indent_size = 4 | ||
indent_style = space | ||
max_line_length = 80 | ||
|
||
[*.patch] | ||
trim_trailing_whitespace = false | ||
|
||
[*.json] | ||
indent_size = 2 | ||
indent_style = space | ||
|
||
[compose.yaml] | ||
indent_size = 2 | ||
indent_style = space | ||
|
||
[Dockerfile] | ||
indent_size = 2 | ||
indent_style = space |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,10 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "composer" | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
day: "saturday" | ||
- package-ecosystem: "docker" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
day: "saturday" | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
day: "saturday" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
coverage: | ||
paths: | ||
- ../lcov.info | ||
acceptable: current >= 60% | ||
testExecutionTime: | ||
if: false | ||
comment: | ||
if: is_pull_request | ||
diff: | ||
datastores: | ||
- artifact://${GITHUB_REPOSITORY} | ||
comment: | ||
if: is_pull_request | ||
report: | ||
if: is_default_branch | ||
datastores: | ||
- artifact://${GITHUB_REPOSITORY} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: Coverage | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- reopened | ||
jobs: | ||
Linux: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
version: ['8.3'] | ||
type: ['cli', 'zts'] | ||
distro: ['bookworm'] | ||
outputs: | ||
matrix: ${{ toJson(matrix) }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- name: Setup buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Build container | ||
run: | | ||
docker compose build --pull --no-cache --build-arg PLATFORM="linux/amd64" --build-arg IMAGE="php" --build-arg TAG="${{ matrix.version }}-${{ matrix.type }}-${{ matrix.distro }}" | ||
- name: Test with gcov | ||
run: | | ||
docker compose run -v "$(pwd)/ext:/ext" --rm shell pskel coverage | ||
- name: Upload coverage to artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: coverage-${{ matrix.version }}-${{ matrix.type }}-${{ matrix.distro }} | ||
path: ${{ github.workspace }}/ext/lcov.info | ||
Coverage: | ||
needs: [Linux] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Download coverage artifacts | ||
uses: actions/download-artifact@v4 | ||
- name: Merge coverages | ||
run: | | ||
sudo apt-get install -y "lcov" | ||
LCOV_FILES="$(find . -name "lcov.info")" | ||
CMD="$(which "lcov")" | ||
for LCOV_FILE in ${LCOV_FILES}; do | ||
CMD+=" -a ${LCOV_FILE}" | ||
done | ||
CMD+=" -o lcov.info" | ||
echo "Merging coverages: ${LCOV_FILES}" | ||
${CMD} | ||
- name: Report coverage | ||
uses: k1LoW/octocov-action@v1 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
config: .github/octocov.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
/artifacts | ||
/vendor | ||
composer.lock | ||
.phpunit.result.cache | ||
*.DS_Store | ||
/ext/*.dep | ||
/ext/*~ | ||
*.DS_Store | ||
lcov.info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"name": "Linux", | ||
"includePath": [ | ||
"${workspaceFolder}/**", | ||
"/usr/local/include/php", | ||
"/usr/local/include/php/TSRM", | ||
"/usr/local/include/php/Zend", | ||
"/usr/local/include/php/ext", | ||
"/usr/local/include/php/include", | ||
"/usr/local/include/php/main", | ||
"/usr/local/include/php/sapi" | ||
], | ||
"defines": [], | ||
"compilerPath": "/usr/bin/gcc", | ||
"cStandard": "c99" | ||
} | ||
], | ||
"version": 4 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"files.associations": { | ||
"*.phpt": "php", | ||
"*.c": "c", | ||
"*.h": "c" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# 11.0.2-dev | ||
- Add official support for PHP 8.3 | ||
- Upgrade pskel | ||
|
||
# 11.0.1 | ||
- More strict bundled tests | ||
|
Oops, something went wrong.