-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into fix/artifact-provider-class
- Loading branch information
Showing
56 changed files
with
1,416 additions
and
708 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,42 @@ | ||
name: Documentation | ||
on: | ||
push: | ||
branches: | ||
# @todo Remove once branch is merged | ||
- 'docs/init' | ||
tags: | ||
- '*' | ||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow one concurrent deployment | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v3 | ||
- name: Render documentation | ||
run: docker-compose -f docs/_build/docker-compose.yaml run --rm build | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v1 | ||
with: | ||
path: 'docs/_build/html' | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v1 |
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,103 +1,7 @@ | ||
# Contributing | ||
|
||
Thanks for considering contributing to this project! Each contribution is | ||
highly appreciated. In order to maintain a high code quality, please follow | ||
all steps below. | ||
highly appreciated. Please have a look at the [official documentation][1] | ||
to get an overview about our contribution workflow. | ||
|
||
## Requirements | ||
|
||
- Composer >= 2.1 | ||
- PHP >= 8.0 | ||
|
||
## Preparation | ||
|
||
```bash | ||
# Clone repository | ||
git clone https://github.com/CPS-IT/project-builder.git | ||
cd project-builder | ||
|
||
# Install dependencies | ||
composer install | ||
``` | ||
|
||
## Run linters | ||
|
||
```bash | ||
# All linters | ||
composer lint | ||
|
||
# Specific linters | ||
composer lint:composer | ||
composer lint:editorconfig | ||
composer lint:json | ||
composer lint:php | ||
composer lint:yaml | ||
``` | ||
|
||
## Run static code analysis | ||
|
||
```bash | ||
# All static code analyzers | ||
composer sca | ||
|
||
# Specific static code analyzers | ||
composer sca:php | ||
``` | ||
|
||
## Run tests | ||
|
||
```bash | ||
# All tests | ||
composer test | ||
|
||
# All tests with code coverage | ||
composer test:coverage | ||
``` | ||
|
||
### Test reports | ||
|
||
Code coverage reports are written to `.build/coverage`. You can open the | ||
last HTML report like follows: | ||
|
||
```bash | ||
open .build/coverage/html/index.html | ||
``` | ||
|
||
## Validate JSON schema | ||
|
||
```bash | ||
composer validate-schema | ||
``` | ||
|
||
## Simulate `composer create-project` behavior | ||
|
||
The `composer create-project` behavior can be simulated to test whether the | ||
current project state works as expected. | ||
|
||
```bash | ||
composer simulate | ||
``` | ||
|
||
This Composer script wraps the default behavior of `composer create-project` | ||
into a simulated directory, which is normally something like | ||
`.build/simulate_6299c0dda8600`. The simulated directory will be shown after | ||
simulation has finished. | ||
|
||
:bulb: An environment variable `PROJECT_BUILDER_SIMULATE_VERSION` can be used | ||
to override the project builder version during simulation. This is especially | ||
useful when testing template packages that require a specific version of the | ||
project builder. | ||
|
||
## Submit a pull request | ||
|
||
Once you have finished your work, please **submit a pull request** and describe | ||
what you've done. Ideally, your PR references an issue describing the problem | ||
you're trying to solve. | ||
|
||
All described code quality tools are automatically executed on each pull request | ||
for all currently supported PHP versions and Composer versions. Take a look at | ||
the appropriate [workflows][3] to get a detailed overview. | ||
|
||
[1]: https://ddev.readthedocs.io/en/stable/ | ||
[2]: .ddev/config.yaml | ||
[3]: .github/workflows | ||
[1]: https://cps-it.github.io/project-builder/contributing/workflow.html |
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.