@3Di very thanks for information!3Di wrote: Wed Mar 24, 2021 5:17 am Disable your tests for php 8.1 for now, like phpBB does here
https://github.com/phpbb/phpbb/blob/46d ... #L126-L127
This is pointing on my constructor or its doc block.71 | ERROR | Either use statement or full name must be used.
| | (..phpbb_Sniffs_Namespaces_UnusedUse.FullName
Still experiencing this error:Toxyy wrote: Fri Apr 23, 2021 11:18 pm Getting this error on the PHP 8.0 - mysql:5.7 test in github actions:
This part passes in all of the other tests, I'm not sure what's wrong with the php 8 one.Code: Select all
Test directory "phpBB/ext/toxyy/anonymousposts/.github/../tests" not found Error: Process completed with exit code 2.
That was my next step, I was just unaware of if it was a bug since all tests in other php versions run fine without it, as my other extension shows:Paul wrote: Sun Apr 10, 2022 11:16 am Did you trying creating the tests/ directory, and putting tests in there?
viewtopic.php?p=15647011#p15647011Toxyy wrote: Sun Apr 10, 2022 11:10 amStill experiencing this error:Toxyy wrote: Fri Apr 23, 2021 11:18 pm Getting this error on the PHP 8.0 - mysql:5.7 test in github actions:
This part passes in all of the other tests, I'm not sure what's wrong with the php 8 one.Code: Select all
Test directory "phpBB/ext/toxyy/anonymousposts/.github/../tests" not found Error: Process completed with exit code 2.
https://github.com/toxyy/anonymousposts ... step:10:16
bar
, and your GitHub username is foo
, these rules assume that the GitHub repo for your extension is located at https://github.com/foo/bar
— right?https://github.com/foo/project-name/bar
, where the project-name
is not important — it mostly allows me to have lots of things at the root that are important to me as a developer, but absolutely irrelevant for a potential end-user wanting to install the extension — and who only need to know that they should use foo/bar
..gitignore
to make sure that none of the many, many files I've got on the root — and which, as said, are just related to development configuration — are ever exported to GitHub, or packaged in the zip file, but... it seems like a very awkward way of doing things, IMHO. Developers need all those configuration thingies. End-users do not. You cannot create a rule for one and a different one for the other type of user. You can, however, dump the whole mess inside the root, not .gitignore
it — so that developers will be able to get all those files when cloning the repo — but keep all those files off the zip file.Try using sparse-mode with the Checkout extension stepGwyneth Llewelyn wrote: Wed Apr 24, 2024 8:57 pm Hi there! And thanks @MattF for this outstanding job!
Please bear with me... while I've been using GitHub Actions for a while now, I'm not familiar with writing rules for these actions, thus my question...
AFAICS, the action rules presume that one's extension is at the 'root' of the GitHub repo, is that correct? Thus, if your extension is namedbar
, and your GitHub username isfoo
, these rules assume that the GitHub repo for your extension is located athttps://github.com/foo/bar
— right?
Now, for several reasons, I've got my own extension one level below, i.e.https://github.com/foo/project-name/bar
, where theproject-name
is not important — it mostly allows me to have lots of things at the root that are important to me as a developer, but absolutely irrelevant for a potential end-user wanting to install the extension — and who only need to know that they should usefoo/bar
.
I'm aware that I could simply add half a ton of rules to.gitignore
to make sure that none of the many, many files I've got on the root — and which, as said, are just related to development configuration — are ever exported to GitHub, or packaged in the zip file, but... it seems like a very awkward way of doing things, IMHO. Developers need all those configuration thingies. End-users do not. You cannot create a rule for one and a different one for the other type of user. You can, however, dump the whole mess inside the root, not.gitignore
it — so that developers will be able to get all those files when cloning the repo — but keep all those files off the zip file.
I can't quite understand where exactly in the action rules that is being handled. To me, it looks like GitHub will simply package all the mess together inside the zip file, and that's it. After all, the extension will run, mess or no mess...
Additionally, for some very stupid reason, when I first registered with GitHub eons ago, I used CamelCase for my name, while the phpBB convention for names & extensions is now all-lowercase. I have some degree of control over that on subfolders, obviously, but I cannot change anything on the GitHub side of things (even though, AFAIK, GitHub's usernames are case-insensitive, e.g. they accept all-lowercase as the actual username, redirecting to the proper repo anyway — but that might only happen at the HTTP level when accessing repos via a browser, I don't really know).
So... my question is simply... what would I need to change on the workflow file to have it working on subfolders as well? On the official documentation page, there is a reference to "changes to be made" but it's not specified which changes have to be made and where...
Code: Select all
- name: Checkout extension
uses: actions/checkout@v4
with:
path: phpBB3/phpBB/ext/${{ env.EXTNAME }}
sparse-checkout: 'project-name/bar'
sparse-checkout-cone-mode: false