|
| 1 | +Workflow - things to think through: |
| 2 | + |
| 3 | +* Release vs pre-release |
| 4 | + |
| 5 | +* On release vs manually triggered |
| 6 | + |
| 7 | +=> The `latest` tag determination is probably not necessary when running on "release". |
| 8 | + Info should be available in the `github` context -> needs checking |
| 9 | + If so, those steps could be made conditional on "workflow triggered". |
| 10 | + |
| 11 | +=> For pre-release, we need to skip the `verify-plain-web` job as that should always hold the latest release, not pre-release |
| 12 | + The other jobs should still run. |
| 13 | + |
| 14 | +=> For workflow triggered.... |
| 15 | + -> We need to check if the latest release is a release or pre-release. |
| 16 | + If release, all good, continue as normal. |
| 17 | + If pre-release, the plain web check needs to be skipped ? |
| 18 | + Or should it try and find the latest _stable_ release and try and verify that instead ? |
| 19 | + |
| 20 | +------------ |
| 21 | + |
| 22 | +=> See about moving the "determine the tag" part to a separate job and carrying a variable over to the next jobs |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | +================================================================================= |
| 34 | + |
| 35 | +NOTES: |
| 36 | + |
| 37 | +Check how they do it in.... |
| 38 | +* PHPUnit |
| 39 | +* PHPDocumentor |
| 40 | +* PHPStan |
| 41 | + |
| 42 | +* Still also needs the (slimmed down) release checklist for the manual steps |
| 43 | + |
| 44 | +* basic principle: trigger a release build on closing a milestone. |
| 45 | + !!! ONLY RUN on this repo!!! |
| 46 | + -> see if any of the "prelim" tasks can be automated (like checking for squizlabs `@license` tag) |
| 47 | + - create a tag |
| 48 | + - create the phars |
| 49 | + - run the tests |
| 50 | + - sign the PHAR files |
| 51 | + -> will need to figure out if this step will fail (correctly) if the signature needs renewal. If not, will need a check before this to check if the signature is still valid |
| 52 | + - attest the signatures too ? |
| 53 | + - verify PHAR attestations |
| 54 | + - create the GH Pages update |
| 55 | + -> will probably need a script to update the phive.xml file |
| 56 | + - commit & build GH Pages |
| 57 | + - verify the site has been updated |
| 58 | + - download phar file and check phpcs -v against tag |
| 59 | + - do test install with phive and verify installed versions |
| 60 | + - create a draft release for the tag and upload the phar + asc files to it |
| 61 | + - ??? can probably not do the update of the version nr to next as doesn't know what the "next" version should be... |
| 62 | + |
| 63 | + |
| 64 | +* will need a think about if and if so, how the PHAR building job can be made re-usable |
| 65 | +* will need a think about whether `test` should still run on `tag` as if the tag is created by a workflow, I highly doubt it will trigger a run |
| 66 | + => and if so, may need to have a think about making the test workflow reusable too, including whether this can be set up to handle code coverage in the same re-usable workflow |
| 67 | + |
| 68 | + |
0 commit comments