-
-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'v3' into features/Stationeers
- Loading branch information
Showing
248 changed files
with
2,432 additions
and
1,087 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/php | ||
{ | ||
"name": "PHP", | ||
"build": { | ||
"dockerfile": "docker/Dockerfile" | ||
}, | ||
"features": { | ||
"ghcr.io/devcontainers/features/docker-in-docker:2": {} | ||
}, | ||
"postCreateCommand": ".devcontainer/postCreate.sh", | ||
"remoteUser": "vscode" | ||
} |
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,16 @@ | ||
# Define the DevContainer template to be used as the base | ||
ARG PHP=8.3 | ||
ARG DISTRO=bullseye | ||
|
||
FROM mcr.microsoft.com/vscode/devcontainers/php:$PHP-$DISTRO | ||
|
||
# Update the registry once | ||
RUN apt-get update | ||
|
||
# Install ext-bz2 | ||
RUN apt-get install -y libbz2-dev \ | ||
&& docker-php-ext-configure bz2 \ | ||
&& docker-php-ext-install bz2 | ||
|
||
# Install act | ||
RUN curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/nektos/act/master/install.sh | sudo bash -s -- -b /usr/local/bin |
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,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Install dependencies using Composer | ||
if [ ! -f composer.lock ]; then | ||
composer install | ||
fi |
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,12 +1,15 @@ | ||
* text=auto | ||
|
||
/build export-ignore | ||
/examples export-ignore | ||
/tests export-ignore | ||
/.coveralls.yml export-ignore | ||
/.scrutinizer.yml export-ignore | ||
/.github export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.travis.yml export-ignore | ||
/phpunit.xml export-ignore | ||
/phpunit.xml.dist export-ignore | ||
/CONTRIBUTING.md export-ignore | ||
/README.md export-ignore |
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,57 @@ | ||
name: Documentation | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- v3 | ||
|
||
jobs: | ||
apigen: | ||
runs-on: ubuntu-22.04 | ||
name: ApiGen | ||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 10 | ||
path: source | ||
|
||
- name: Checkout gh-pages | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 10 | ||
ref: gh-pages | ||
path: gh-pages | ||
|
||
- name: Validate composer.json | ||
run: | | ||
cd source | ||
composer validate | ||
- name: Cache composer files | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.composer/cache/files | ||
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('source/composer.json') }} | ||
|
||
- name: Install dependencies using composer | ||
run: | | ||
cd source | ||
composer install --prefer-dist --no-interaction ${{ matrix.composer-extra }} | ||
- name: Clean old ApiGen | ||
run: | | ||
rm -rf gh-pages/api | ||
mkdir -p gh-pages/api | ||
- name: ApiGen | ||
run: docker run --rm --interactive --user $(id -u):$(id -g) --volume "$PWD:$PWD" --workdir "$PWD/source" apigen/apigen:edge src --output ../gh-pages/api | ||
|
||
- name: Commit & Push updated file | ||
if: always() | ||
uses: EndBug/add-and-commit@v9 | ||
with: | ||
default_author: github_actor | ||
message: 'Regenerated ApiGen documentation.' | ||
cwd: gh-pages |
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 |
---|---|---|
@@ -1,13 +1,21 @@ | ||
|
||
# Development | ||
/remotes/ | ||
test.php | ||
/.buildpath | ||
/.project | ||
/.settings/* | ||
vendor | ||
|
||
# JetBrains | ||
/.idea | ||
*.iml | ||
|
||
# Composer | ||
vendor | ||
composer.lock | ||
composer.phar | ||
|
||
# PHPUnit | ||
.phpunit.result.cache | ||
coverage/ | ||
build/logs/ | ||
test.php | ||
*.iml | ||
/remotes/ | ||
build/logs/* | ||
!build/logs/.gitkeep |
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 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Debug Tests", | ||
"type": "php", | ||
"request": "launch", | ||
"port": 0, | ||
"cwd": "${workspaceFolder}", | ||
"runtimeArgs": [ | ||
"-dxdebug.mode=debug,develop", | ||
"-dxdebug.client_port=${port}", | ||
"-dxdebug.start_with_request=yes" | ||
], | ||
"program": "${workspaceFolder}/vendor/bin/phpunit", | ||
} | ||
] | ||
} |
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,8 @@ | ||
{ | ||
"folders": [ | ||
{ | ||
"path": "." | ||
} | ||
], | ||
"settings": {} | ||
} |
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
Empty file.
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
Oops, something went wrong.