- DetoxDemo: https://github.com/tjmaher/detox-demo/
Late last night, after pouring over Wix's Detox Docs for Artifacts, I decided I wanted to implement that in my GitHub Actions CI/ CD Workflow.
Want to kick off a job to run all the Login tests in the CI/ CD platform using the GitHub Actions workflow? With the DetoxDemo GitHub:
- Go to Actions -> View all Workflows
- Under the Actions column to the left, select Build & Test iOS
- Select the [Run workflow] button to see all the choices I set up in the ios-regression.yml configuration file under the on: workflow_dispatch -> inputs
- Say you were a developer that wanted to test out their JIRA-123 branch code before merging, under "Use workflow from" they could choose branch JIRA-123 here instead of running against the main branch.
- Which test suite would you like to run? Login? SecureArea? Default is "all".
- Which iPhone 16 would you like to run the tests on? Regular iPhone 16, Pro, or Pro Max? Or maybe an iPad Mini, Air, or Pro?
- What log level? Select any range from the very verbose "trace", to throwing alerts only if things are "fatal". Default is "info".
- What level of artifacts do you want to capture for logs, screenshots, or videos? All, just failing, or none?
- Do you want to run performance testing with Detox Instruments? We have that option! Still looking how the Wix Incubator's Detox Instruments works with CI/CD.
- Or you can just scroll down to the bottom and select [Run Workflow] and kick off the default values set up in ios-regression.yml
- A new "Build & Test iOS" run will be created. Feel free to click into the run to see it run through the build -> test -> publish-allure-reports -> cleanup stages where you can see all Homebrew, RubyGems, Cocoapods, Node.js, and Applesimutils are configured and run.
- If you click into the "build" stage, you can see it work through tasks such as "Set up job", "Checkout repository", "Setup Homebrew", "Setup Ruby", "Cache Homebrew and RubyGems", etc. It takes 30 minutes for a Detox-embedded build to be generated.
When everything is finished, you can see in the run downloadable artifacts such as videos, logs, screenshots, and the allure-report.





