Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init #200

Closed
wants to merge 1 commit into from
Closed

init #200

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading