Skip to main content

GitHub Action

On top of our REST API, SDKs and CLI, we also offer a GitHub Action that allows you to run MATRIX tests as part of your GitHub Actions workflow. This action is designed to be used in a CI pipeline for native apps. This means we assume you already have a CI pipeline set up that builds your native app with a build tool like Gradle or Xcode.

Setup

This action requires the following repository secrets to be set up. For more information, see the GitHub's documentation for Creating secrets for a repository.

SecretDescription
CORELLIUM_API_TOKENCorellium API token that can be created in our Web UI
CORELLIUM_PROJECTCorellium project ID

Create a workflow .yml file in your repository's .github/workflows directory. An example workflow can be found here. For more information, see the GitHub's documentation for Using workflows.

Usage

See action.yml

Here's an example of how to use this action in a workflow file:

name: Run Corellium MATRIX solution

on: [push]

jobs:
corellium-matrix:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm ci
- run: npm run bundle

- name: Run MATRIX
id: corellium-matrix
uses: corellium/[email protected]
env:
PROJECT: ${{ secrets.CORELLIUM_PROJECT }}
API_TOKEN: ${{ secrets.CORELLIUM_API_TOKEN }}
with:
deviceFlavor: 'iphone14p'
deviceOS: '17.2'
server: 'https://app.corellium.com'
appPath: '/test/app.ipa'
userActions: '/test/user-actions.json'
keywords: '/test/keywords.txt'

Inputs

InputDescriptionExampleRequiredDefault
serverSpecifies which Corellium server to usehttps://app.corellium.comfalsehttps://app.corellium.com
deviceFlavorThe flavor of the Instance that is being creatediphone14ptruen/a
deviceOSThe software version17.2truen/a
appPathURL to download test app or local path of the app relative to the Github workspacehttps://www.corellium.com/hubfs/Corellium_Cafe.ipatruen/a
userActionsURL to download device input .json file or local path of the .json file relative to the Github workspace. Examples can be found here/test/user-actions.jsontruen/a
keywordsURL to download wordlist .txt file or local path of the .txt file relative to the Github workspace/test/keywords.txtfalsen/a

Outputs

OutputDescription
reportMATRIX report artifact download path relative to the Github workspace