jdecool/scaleway-runtimepublic Fork
⑂ v0.3.0
Commits
⬇ Clone ▾
git clone https://git.rickub.com/jdecool/scaleway-runtime.git
git clone ssh://git@rickub.com/jdecool/scaleway-runtime.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP
docs: split the README into a documentation folder organised by domain a4d5deaUnverified · on v0.3.0 · Jérémy DECOOL · 2d ago
CONTRIBUTING.md · 20 lines · 1.4 KBmarkdown
Blame HistoryOpen raw

Contributing

composer install
composer check   # PHP-CS-Fixer (dry run), PHPStan (max level) and PHPUnit
composer cs-fix  # applies the coding style

CI runs composer validate --strict and composer check on PHP 8.4 and 8.5, each against Symfony 7.4 and 8.x, the whole Symfony stack being pinned through Flex's SYMFONY_REQUIRE.
It also runs the end-to-end scenarios of the example application through the Emulator, in dev and on its zip installed like Scaleway does (e2e/deploy-locally.sh).
The example installs the runtime of the checkout with composer link-runtime, see its README.
A weekly workflow measures the Function Runtimes on Scaleway again, and opens a pull request when the catalogue changes, see docs/probe-results.md.

The repository holds:

  • src/, bin/, resources/: the package;
  • tests/: PHPUnit tests, packaging included;
  • example/: a demo Symfony application requiring the package, with Terraform code to deploy it;
  • probe/: a dependency-free function measuring the platform facts, its results, and the generator of the Function Runtime Catalogue;
  • docs/: the user documentation and the ADRs.
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
# Contributing

```sh
composer install
composer check   # PHP-CS-Fixer (dry run), PHPStan (max level) and PHPUnit
composer cs-fix  # applies the coding style
```

CI runs `composer validate --strict` and `composer check` on PHP 8.4 and 8.5, each against Symfony 7.4 and 8.x, the whole Symfony stack being pinned through Flex's `SYMFONY_REQUIRE`.
It also runs the [end-to-end scenarios](example/e2e/run.sh) of the [example application](example) through the Emulator, in dev and on its zip installed like Scaleway does ([e2e/deploy-locally.sh](example/e2e/deploy-locally.sh)).
The example installs the runtime of the checkout with `composer link-runtime`, see its [README](example/README.md#run-it-locally).
A weekly workflow measures the Function Runtimes on Scaleway again, and opens a pull request when the catalogue changes, see [docs/probe-results.md](docs/probe-results.md#function-runtime-catalogue).

The repository holds:

- `src/`, `bin/`, `resources/`: the package;
- `tests/`: PHPUnit tests, packaging included;
- `example/`: a demo Symfony application requiring the package, with Terraform code to deploy it;
- `probe/`: a dependency-free function measuring the platform facts, its [results](docs/probe-results.md), and the generator of the [Function Runtime Catalogue](docs/probe-results.md#function-runtime-catalogue);
- `docs/`: the [user documentation](docs/README.md) and the [ADRs](docs/adr/README.md).