-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (32 loc) · 1.03 KB
/
reactnative.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: React Native CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16.x'
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- run: |
cd backend
touch .env
echo ENV=GA >> .env
# Install dependencies in the frontend directory
- name: Install dependencies
run: cd frontend && npm install
# Optionally, you can add steps to build your React Native app
# - name: Build React Native app
# - run: cd frontend && npx react-native build-android
# run: cd frontend && npx react-native run-android
# Run tests (make sure you have a test script in your package.json)
# - name: Run tests
# run: cd frontend && npm test
# Any other steps you need for your CI, like linting, can be added here