Skip to content

Commit

Permalink
ci: adds detox e2e github actions pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
WarleyLopes committed May 14, 2024
1 parent 2d2bf28 commit 2a731a8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ on:
schedule:
- cron: "0 6 * * 1"

env:
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_NO_INSTALL_CLEANUP: 1

jobs:
test:
runs-on: macos-latest
Expand All @@ -33,6 +29,8 @@ jobs:
~/Library/Developer/Xcode/DerivedData
native-app/.expo
~/Library/Caches/CocoaPods
~/Library/Caches/Homebrew
/usr/local/Homebrew
key: ${{ runner.os }}-dependencies-${{ hashFiles('native-app/yarn.lock') }}-${{ hashFiles('backend/yarn.lock') }}-${{ hashFiles('native-app/ios/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-dependencies
Expand All @@ -56,6 +54,14 @@ jobs:
yarn start &
sleep 5
- name: Install macOS dependencies
run: |
brew tap wix/brew
brew install applesimutils
env:
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_NO_INSTALL_CLEANUP: 1

- name: Start API server in background
run: |
cd backend
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

This repository showcases mobile test automation for a React Native project using the Detox framework. It also includes unit tests for components in the mobile app, as well as unit tests and test automation for the API.

## GitHub Actions - Detox E2E Continuous Testing / CI Pipeline

[![CI](https://github.com/WarleyLopes/QAEngineeringChallenge2/actions/workflows/actions.yml/badge.svg)](https://github.com/WarleyLopes/QAEngineeringChallenge2/actions/workflows/actions.yml)


Expand Down
2 changes: 2 additions & 0 deletions native-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

This repository showcases mobile test automation for a React Native project using the Detox framework. It also includes unit tests for components in the mobile app, as well as unit tests and test automation for the API.

[![CI](https://github.com/WarleyLopes/QAEngineeringChallenge2/actions/workflows/actions.yml/badge.svg)](https://github.com/WarleyLopes/QAEngineeringChallenge2/actions/workflows/actions.yml)

## Detox iOS Demonstration

![Detox iOS Demonstration](./artifacts/detox-demo.gif)
Expand Down

0 comments on commit 2a731a8

Please sign in to comment.