Table of Contents


GitHub Actions are a great way to automate, customize, and execute your software development workflows right in your repository.

To follow this tutorial, you will need:


Tutorial

  1. Create an empty GitHub repository for your runner to accept jobs from by following the steps in this GitHub Article.

  2. Add an "API_TOKEN" secret to your repository with a value of your API Token by following the steps in this GitHub Article.

  3. Create a .github/workflows directory in your repository, then create a file named github-actions-demo.yml inside the .github/workflows directory.

  4. Copy the Demo File contents (found below) and paste into the github-actions-demo.yml file.

  5. Clone the device_example folder from https://github.com/corellium/corellium-api/tree/master/examples/device_example into the repository you just made.

  6. In your repository, click Actions.

  7. Click the workflow you would like to run on the left, then click Run workflow

  8. Select Run workflow. The workflow should appear and begin running.

  9. Click on the name of the workflow to see the jobs.

  10. Click the name of the job to see the steps.

  11. Now, you can expand each step to see the output.


Demo File

name: Simpledemo
on: [workflow_dispatch]
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/[email protected]

- name: Install Corellium Api
run: npm install @corellium/corellium-api


- name: Run example
run: node main.js


Next Steps

Check out our article on the Simple API Example we used in this GitHub actions demo for information on how to configure it to run on your Corellium account.

Did this answer your question?