Front End: Initialize TypeScript Project (#62)

* Front End: Initialize TypeScript Project

* Front End: Re-initialize project using Expo

* Front Project Initialization: Add testing dependency

* Init Front: Setup EAS configuration file

* Front: Workflows: Re-do build CI for Expo
This commit is contained in:
Arthur Jamet
2022-07-05 11:34:00 +02:00
committed by GitHub
parent 9221bb461e
commit c4bd0f5f79
17 changed files with 8698 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
name: Build
on:
push:
branches:
- '*'
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build_front:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./front
steps:
- uses: actions/checkout@v3
- name: Install Yarn
run: npm install -g yarn
- name: Install dependencies
run: yarn install
- name: 🏗 Setup Expo
uses: expo/expo-github-action@v7
with:
expo-version: latest
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: Build Android APK
run: |
eas build -p android --profile debug --local --non-interactive
mv *.apk chromacase.apk
- name: Upload Artifact
uses: actions/upload-artifact@v1
with:
name: chromacase.apk
path: front/
+26
View File
@@ -0,0 +1,26 @@
name: Unit Tests
on:
push:
branches:
- '*'
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
run_front_unit_tests:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./front
steps:
- uses: actions/checkout@v3
- name: Install Yarn
run: npm install -g yarn
- name: Install Jest
run: yarn global add jest
- name: Install dependencies
run: yarn install
- name: Run Unit tests
run: yarn test