Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Commit

Permalink
Finished all docs and setup scripts (#38)
Browse files Browse the repository at this point in the history
* fix CI error

* fix mobile.yml error

* fix error

* test CI

* fix yml bug

* fix path error

* fixed error

* try to find bug

* ^

* ^

* fixed error

* ^

* ^

* fixed path issue

* fixed bug

* upload screenshots
  • Loading branch information
GareArc authored Mar 6, 2023
1 parent 1d5e287 commit d881d0a
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 11 deletions.
35 changes: 27 additions & 8 deletions .github/workflows/mobile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,16 @@ on:
branches:
- main


jobs:
build-android:
runs-on: ubuntu-latest
timeout-minutes: 20
# env:
# DSN: ${{ vars.DSN }}

defaults:
run:
working-directory: ./client
# defaults:
# run:
# working-directory: client

steps:
- name: Checkout code
Expand All @@ -28,19 +27,39 @@ jobs:
node-version: '14'

- name: Install dependencies
run: npm install
run: |
cd client
npm install
- name: Create .env file
run: |
cd client
echo "${{ secrets.CLIENT_ENV_FILE }}" > .env
- name: Run tests
run: npm run test
run: |
cd client
npm run test
- name: Build Android APK
run: cd android && chmod +x gradlew && ./gradlew assembleRelease
run: |
cd client && cd android && chmod +x gradlew && ./gradlew assembleRelease
- name: Sign App Bundle
uses: r0adkll/sign-android-release@v1
id: sign_app
with:
releaseDirectory: client/android/app/build/outputs/apk/release
signingKeyBase64: ${{ secrets.ANDROID_SIGNING_KEY }}
alias: ${{ secrets.ANDROID_SIGNING_ALIAS }}
keyStorePassword: ${{ secrets.ANDROID_SIGNING_STORE_PASSWORD }}
keyPassword: ${{ secrets.ANDROID_SIGNING_KEY_PASSWORD }}

- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: StyleEase Android Release
path: ./client/android/app/build/outputs/apk/release/app-release.apk
path: client/android/app/build/outputs/apk/release/app-release.apk
if-no-files-found: 'warn'


Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion client/views/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { StyleSheet, Text, View, Alert } from 'react-native';
import { StatusBar } from 'expo-status-bar';
import { Button } from 'react-native-paper';

import { getName } from "../api/test";
import { getName } from "../api/temp";

const styles = StyleSheet.create({
container: {
Expand Down
4 changes: 2 additions & 2 deletions service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ services:
backend: https://stylease.herokuapp.com/

docs:
getting_started: https://github.com/dcsil/StylEase/blob/5d3676a01012e24a275347338ec6c81587929b21/README.md
getting_started: https://github.com/dcsil/StylEase/blob/main/README.md

commands:
bootstrap: script/bootstrap
database: sudo service mongod start
database: https://cloud.mongodb.com/v2/6405064158eadf1142b29027#/clusters
server: cd ./server; python run.py
test:
bakcend: cd ./server; python -m pytest
Expand Down
Binary file added services/logging_dashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added services/mongodb_atlas.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added services/sentry_issues.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d881d0a

Please sign in to comment.