Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
humanagent committed Jan 4, 2024
1 parent 66cc38c commit 6674d11
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/androidTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,24 @@ jobs:

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: --max-parallel-forks=4

- name: Cache Gradle dependencies
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Cache Node.js dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
Expand All @@ -37,14 +55,14 @@ jobs:
uses: actions/setup-node@v3

- name: Install dependencies
run: npm i --force
run: npm ci

- name: Install React Native CLI
run: npm i -g react-native-cli --force
run: npm i -g react-native-cli

- name: Install docker
run: brew install docker docker-compose

- name: Start colima
run: colima start

Expand All @@ -58,8 +76,10 @@ jobs:
api-level: 29
script: |
react-native run-android
sleep 15
cd android && ./gradlew connectedCheck
- name: Stop local test server
run: docker-compose -p xmtp -f dev/local/docker-compose.yml down

- name: Run Ktlint
run: ./gradlew ktlintCheck

0 comments on commit 6674d11

Please sign in to comment.