GitHub Action workflow for running steps in parallel - continuous-integration

I am working on a project. I need to create a workflow to run integration tests on an iOS device.
Scenario:
I've to run a local server at some port and in parallel I've run integration tests.
Query:
Can I achieve this in Github Actions?
If yes then how?
I'll be thankful for the help.

There's no built in solution for parallel steps at the moment.
Workaround:
Run your server in the background (server &). Or as a daemon if it has it built in.
If you would like to have this feature you can try voting on this feedback thing: https://github.com/github-community/community/discussions/14484

Related

Is there a way to run cypress test to test web application deployed on AWS in different environments?

I can give the URL in cy.visit to point to deployed application, but I am not clear on the setup, as I don't have CI/CD yet. The goal is to be able to run this test on a button click, not having to checkout workspace and build the application.
I can give the URL in cy.visit to point to deployed application, but I am not clear on the setup, as I don't have CI/CD yet. The goal is to be able to run this test on a button click, not having to checkout workspace and build the application.
Yes, you could test your application directly on a staging/preproduction environment on AWS without A CI/CD.
However, I would not recommend using Cypress against a production environment because for E2E testing to be efficient, you will probably create/delete/edit many things, which may not be suited for a prod env.
Finally, it depends on what you try to achieve with your tests. In general, you will use Cypress to ensure your product works as expected after adding a new feature, for example. You always want to test against the latest version of your code.
On the setup, the E2E tests can be packaged in the project and run manually until you have a CI to execute them automatically.
https://docs.cypress.io/guides/guides/command-line#cypress-run

Can a server use two DRONE_RPC_HOST?

Every nice developer!
I use a Drone as my team CI/CD tool.
And my server is running two Drone container, one for Gogs , the other one for Github.
I need to finish my Pipelines in exec runner mode now. But I wonder how can I connect two Git servers? Just be Gogs and Github.
This is exec runner installation tutorial. And the config file can only fill one DRONE_RPC_HOST. But I have two hosts.
DRONE_RPC_PROTO=https
DRONE_RPC_HOST=drone.company.com
DRONE_RPC_SECRET=super-duper-secret
How can I solve my problem? I am glad to get your answer.
Thank you for your read.

OpenTest : How to integrate Opentest with linux jenkins server?

I need assistance on OpenTest for below scenario:
My code is in Aws-Code-Commit repository and my Jenkins is installed in one of the ec2 instance. Now I want to run all my OpenTest test-cases in a Jenkins job and publish the results. I have seen the Jenkins integration tutorial but still getting stuck in Opentest integration with remote Linux Jenkins instance.
I have no clue on how to start the server and actor in my Linux Jenkins instance and how can I execute my test-cases.
Can you help me out here?
You'll likely want to trigger a bash script file which will then execute the node and opentest commands to run your tests. If this answer seems obvious but you still have questions, can you clarify how far along in the process you are stuck?

update Jira Issue with robot test results run through Jenkins pipeline

I am writing tests in RobotFramework and running them through Jenkins pipeline.
I would like to integrate the test results with associated Jira issue automatically?
Can anybody explain step by step process on how to do it?
Running tests in the pipeline. You mean on application build ? You'd want to be sure your tests are rock solid or your Jira ticket is gonna have a load of failure results attached to it. Depending on the processes you have in place with QA this may prove troublesome.
As for doing something like this automatically. We've done something similar in the past but we never wanted it to be part of the CI pipeline. It was a separate step that took the output.xml and uploaded them to Jira/X-Ray using Jira API. But it was a bespoke piece of software.

any library to check marathon deployment status

I have a bunch of marathon docker tasks that are run on our test deployment machines.
There is a Jenkins CI job, that triggers the deployment a whole bunch of docker containers that are run on marathon-mesos cluster. (3 mesos-slaves, 1 master and 1 marathon.)
There is another downstream jenkins job (a automated test suite) that is triggered after above job. Presently, we wait for sufficient time, so that deployment gets completed then only we proceed with this automation testsuite. I want to change this behavior. I know marathon exposes rest APIs using which I can determine if I am good to go - after all the containers are deployed and all health checks are passing - for running the automation test suite.
Question is: Is there any library already out there for marathon, that I can reuse to accomplish above task ? I do not want to reinvent the wheel.
When I posted this question, I had java library actually in mind, but forgot to mention that. I find #michael 's libraries are also very good. But this is what I settled upon. Marathon-client. I think I saw this, while browsing through mesosphere repositories but somehow missed it.
This is the library: marathon-client
I've successfully been using the two following libs:
Go: gambol99/go-marathon
Python: thefactory/marathon-python

Resources