From 480e49bf83db1fdf8fc296b0b470258dda13c668 Mon Sep 17 00:00:00 2001 From: Josh Justice Date: Fri, 1 Apr 2022 11:40:49 -0400 Subject: [PATCH] Add GHA --- .github/workflows/test.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..f6b5a51 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,28 @@ +name: Test +on: [push] + +jobs: + test: + name: Test + runs-on: macOS-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Node + run: | + npm install -g react-native-cli + npm install -g detox-cli + npm install -g yarn + - name: Install Detox + run: | + brew tap wix/brew + brew install applesimutils + - name: Install Yarn Dependencies + run: yarn install + - name: Unit Tests + run: yarn test + - name: Install Pod Dependencies + run: cd ./ios && pod install && cd .. + - name: Detox Build + run: detox build -c ios + - name: Detox Test + run: detox test -c ios --cleanup