Replies: 3 comments 1 reply
-
How can this be? Can github access my Lazarus installations on my local PC? And I have Linux and macOS in virtual machines (VirtualBox) which must be running.
Corona is driven by the GUI, i.e. by the user, and I have not idea how to write test cases for automated tests when no user is present. Werner |
Beta Was this translation helpful? Give feedback.
-
Hey Werner(@wp-xyz )
NOOOO!!!! ABSOLUTLY NOT!!!! HELL NO!!! Don't even go there!!! xD The virtual machines belong to GitHub. Are in some data centre on the cloud and spin up for your convenience. You create some folders on you project: $ mkdir -p .github/workflow You drop as many YAML files there that the Runner reads as config files and it then performs the actions listed inside. Every time you commit, and according to the rules on your That's what I have on the pipeline once you're ok with this. I'm also looking into automating Releases with actions, not just the CI/CD* common stuff, but once one performs a At the moment we can test Lazarus projects with:
GitHub also provides macOS virtual machines, but we can't use them yet due to me being a tad lazy. I've created an action, called setup-lazarus, that installs a desired version of a Lazarus/FPC bundle. It can also get packages from the OPM(Online Package Manager inside the IDE) site: https://packages.lazarus-ide.org/ Since sourceforge provides * Continuous Integration / Continuous Deployment
I'll do the basic unit tests that cover you data objects and then we'll discuss the rest. I my self need to do more than unit tests and I need to find out how and I don't want to go into MVC or MVVM or MVVP. If any of this is not explained to your satisfaction, please ask me anything. I've re-read it many times and I'm aware it's a bit of information overload. I'm also, famously, a tad awful with long winded explanations. Cheers, |
Beta Was this translation helpful? Give feedback.
-
That all sound very interesting. But:
|
Beta Was this translation helpful? Give feedback.
-
Hey Werner,
If you look a any of my Object Pascal repos you'll notice that I have a
.github
folder with a*.yml
file.That file tells the GitHub virtual machine what to do in order to build and test my apps under various versions of FPC/Lazarus and multi platforms like Windows, Linux and macOS. I'm only doing Windows and Linux because the action I've created to setup the virtual machine isn't prepared for macOS. I have some ideas on how to do it but I need to solve the dependencies issues for the package installation. And also because I would be doing it by feeling in the dark, I'm kinda scared of how many tags I'll need to drop in order to get it done...
I'm aware you didn't write any tests, I can try an muster some of them, but we can have the application being built and then do the tests.
In fact, because the tests are in another app, it would be a good way for me to show you how I setup one.
I'll create a new branch and start with the basics of the GitHub actions. I'll also drop a badge on the README.md file to indicate the
build-test
state.I'll then commit it to the repo and wait to see if you agree with it.
This will not touch a line of code in the
source
folder.Cheers,
Gus
Beta Was this translation helpful? Give feedback.
All reactions