Commit Graph

31 Commits

Author SHA1 Message Date
Damien Regad 606abce6e7 Grammar: removed on, not removed in (date) 2024-04-11 10:12:05 +02:00
Zweihorn 39a79d268a
Update deletedFiles.yml with the current ISO date.
Finally, the list of newly removed entries receives a header "# removed in $(date -I)" with the current ISO date.
2024-04-02 14:49:25 +02:00
Zweihorn 3d8dbb19b9
Update deletedFiles.yml with improved workflow
major improvements are:
- cleans this file from any re-introduced file
- adds deleted files to the top of the list
- takes extra care of full path names (i.e. "^$E$" and "^$F$") to avoid cluttering grep with e.g., .txt and .txt_bak files
- uses data/deleted.files.tmp as lock file to produce a single trailing line only after adding any deleted files (thus the "cp" in the first "awk") and removes it (the "mv" in second "awk")
2024-04-01 10:38:04 +02:00
Andreas Gohr 4d2a091249 increase github action versions 2024-03-11 15:33:34 +01:00
Andreas Gohr eacee56e37 adjust export-ignore checking in deleted files action
This makes use of git check-attr to properly check the attributes. The
attributes have been extended to match subdirs and files.
2023-11-14 14:29:26 +01:00
Andreas Gohr 0abcb037f8 test on PHP 8.3 2023-11-14 11:16:21 +01:00
Andreas Gohr 4de5c5e914 prefer composer installed tools in workflows 2023-09-18 19:46:39 +02:00
Andreas Gohr aae5a43ebc autofix: create PR even if phpcbf can't fix everything 2023-09-02 19:11:41 +02:00
Andreas Gohr d6784168e2 prepare for merging
removed WIP marker and changed the branch to master
2023-08-30 17:16:16 +02:00
Andreas Gohr bf7ba4d5b4 workflow improvements
* make bot PRs more easy to spot
* better PR message for autofix
* no more checkstyle to annotation
2023-08-30 14:59:56 +02:00
Andreas Gohr 077b7fe2fa add configuration for rector
A workflow should automatically suggest a new pull request with the
changes.

Initial fixes will not be applied from the auto generated PR but will be
added as piece by piece commits with rule updates to this branch.
2023-08-29 13:42:04 +02:00
Andreas Gohr 3a2e53cf6e do not test on PHP <7.4 anymore 2023-06-09 21:26:48 +02:00
Andreas Gohr 605810ee2f use local squid docker instance for proxy testing 2023-04-26 20:23:44 +02:00
Andreas Gohr fac3e3ef7b Release Action: Use the correct download URL
This should hopefully correctly download the TGZ file in the deployment
step. If it really works, we will only see on the next release.
2023-04-04 18:42:47 +02:00
Andreas Gohr 66966f8dc7 update the updateVersion when preparing a release
This should fix the problem we found in #3932
2023-03-29 19:17:50 +02:00
Andreas Gohr 290ea73da0 Automate the release workflow using GitHub actions
This introduces a two-part release mechanism. A manually triggered
workflow asks for the important info like type of release (stable, rc)
and code name. It then creates a cleanly mergable pull request.

When that pull request is merged, a release is automatically tagged,
built and uploaded.

Another workflow is introduced to keep track of the deleted.files info.
This is one less chore to do on a release.

A new scheme for tags is also introduced, making all tags sortable,
regardless of their type. They follow the pattern

release-YYYY-MM-DD(<hotfixletter>|rc)

A script will be used to clean-up the existing tags.
2023-02-24 21:45:12 +01:00
Andreas Gohr 336fb258c8 use newer checkout action and test on php 8.2 2023-01-31 09:39:53 +01:00
Alex d3b9050609 build: harden testLinux.yml permissions
Signed-off-by: Alex <aleksandrosansan@gmail.com>
2022-11-04 01:04:57 +02:00
Alex 0592875992 build: harden phpCS.yml permissions
Signed-off-by: Alex <aleksandrosansan@gmail.com>
2022-11-04 01:04:44 +02:00
Alex ae4ab31c70 build: harden testWindows.yml permissions
Signed-off-by: Alex <aleksandrosansan@gmail.com>
2022-11-04 01:04:36 +02:00
Alex 9c176d21f5 build: harden release.yml permissions
Signed-off-by: Alex <aleksandrosansan@gmail.com>
2022-11-04 01:04:14 +02:00
Andreas Gohr 476584a323 github action to automatically build new releases
The action will build the new release tarball and copy it to our server.
Nothing more for now.
2022-07-28 20:30:15 +02:00
Andreas Gohr 7aee97ee81 test on PHP 8.1 2022-01-01 10:16:18 +01:00
Andreas Gohr 89c597ea95 disable jit compiling to avoid broken pcre lib #3507 2021-11-11 13:47:16 +01:00
Andreas Gohr a417911a65 Run tests on PHP 8.0 now 2021-03-04 12:39:49 +01:00
Andreas Gohr bb6dfcb8e3 another try to fix when github actions run
The attempt in 7bbf38eeb4 to not run
checks twice for our own internal pull requests seem not to have worked,
because checks in external PRs were no longer executed.

This is another approach to achieve the same based on code found at
764f121f9a/.github/workflows/build-and-test.yml (L10-L12)
2021-01-05 11:57:55 +01:00
Andreas Gohr 7bbf38eeb4 avoid running tests twice for pull requests
This implements the suggested method from [1]. It runs tests on all pushes to
our own repository and for pull requests coming from other people's forks.

[1] https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662/10
2020-11-20 23:52:08 +01:00
Andreas Gohr 2cf7c325f8 Replace Appveyor and Travis with Github actions
Travis has recently introduced built limits which makes using them very
slow sometimes and I never really liked the setup for appveyor for our
Windows testing.

This makes use of github actions instead. Some notes:

* since we only support PHP 7.2+ anymore, nothing below is tested
* MySQL and Postgres auth backends are only tested on Linux (as before)
* I am not actually sure the problem matchers are working as intended
* There is currently no good way to run tests that are allowed to fail
  so no PHP 8 tests are run yet
* I haven't reestablished the no-gzip test runs again, I'm not sure they
  are still relevant on modern PHP systems
* PHP 7.4 currently fails because of https://github.com/MarcusSchwarz/lesserphp/pull/18
* I'm currently using @v2 tags for the used action. We had a discussion
  before if we should actually pin the action to a fixed commit. For
  sake of easier maintainance, I would argue to trust the setup-php
  action.
2020-11-20 23:50:01 +01:00
Michael Große 36faf6960d
Split out temporary code style excludes
Splitting them out allows for plugins to use _test/phpcs.xml as the
basis for their own linting without having an overly permissive coding
standard.
Also, this makes it more obvious and painful that these are just
intended as temporary exceptions and should be actually fixed.

The rule `Generic.ControlStructures.InlineControlStructure.NotAllowed`
has its comment adjust to make it clear that this is an intended
deviation from the PSR-2/PSR-12 coding standard.

The rule `PSR1.Classes.ClassDeclaration.MissingNamespace` has to remain
in the DokuWiki coding standard as the plugin base classes can currently
not reasonably be in namespaces.
2020-02-19 10:55:56 +01:00
Michael Große b5f2c105ff
Run code style checks on pull requests, too
This should make the code style checks also run on pull requests the
come from forks. Maybe also on old pull requests?
2020-01-21 22:06:11 +01:00
Michael Große e3cafdc28a
Check our code style for every PR
This excludes the currently failing checks with automatic fixes, as they
are out of scope of this commit. The current goal is automatically
reject pull requests that don't me the standards that the rest of our
code base already follows.
2020-01-06 19:48:19 +01:00