-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(github-actions): create update.yml and add code coverage config…
…uration
- Loading branch information
1 parent
2962aec
commit 04653d8
Showing
25 changed files
with
8,144 additions
and
4,185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Running Code Coverage | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [18.x,19.x,20.x,21.x,22.x] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: Set up Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Run tests | ||
run: npm run test | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v1 | ||
|
||
- name: Upload coverage reports to Codecov | ||
uses: codecov/codecov-action@v4.0.1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: update | ||
on: | ||
pull_request: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
update: | ||
name: EAS Update | ||
runs-on: windows-latest | ||
steps: | ||
- name: Check for EXPO_TOKEN | ||
run: | | ||
if [ -z "${{ secrets.EXPO_TOKEN }}" ]; then | ||
echo "EXPO_TOKEN is not set." | ||
exit 1 | ||
fi | ||
shell: bash | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '>=18.x' | ||
cache: npm | ||
|
||
- name: Setup EAS | ||
uses: expo/expo-github-action@v8 | ||
with: | ||
eas-version: latest | ||
token: ${{ secrets.EXPO_TOKEN }} | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Deploy to Expo | ||
run: npm run build | ||
env: | ||
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import Loading from "@/app/spinner/Loading"; | ||
import { Image, StyleSheet, Text, View } from "react-native"; | ||
|
||
|
||
|
||
export default function SplashScreen(){ | ||
return ( | ||
<> | ||
<View style={styles.container}> | ||
<View style={styles.splash}> | ||
<View> | ||
<View> | ||
<Image source={require('../assets/images/icon.png')}/> | ||
</View> | ||
</View> | ||
|
||
<View> | ||
<Text style={styles.text}>Medica</Text> | ||
</View> | ||
<View style={styles.spin}> | ||
<Loading/> | ||
</View> | ||
|
||
|
||
</View> | ||
|
||
</View> | ||
</> | ||
) | ||
} | ||
|
||
const styles = StyleSheet.create({ | ||
container:{ | ||
flex:1, | ||
justifyContent:'center', | ||
alignItems:'center', | ||
backgroundColor:'#ffff' | ||
}, | ||
splash:{ | ||
flex:1, | ||
flexDirection:'row', | ||
justifyContent:'center', | ||
alignItems:'center', | ||
backgroundColor:'white', | ||
gap:20, | ||
width:'100%' | ||
}, | ||
text:{ | ||
fontSize:30 | ||
}, | ||
spin:{ | ||
position:'absolute', | ||
bottom: 50 | ||
|
||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,63 @@ | ||
interface Props {} | ||
import { Image, ScrollView, StyleSheet, Text, View } from "react-native"; | ||
import Typography from "@/constants/Typography"; | ||
import Colors from "@/constants/Colors"; | ||
|
||
export default function HomeScreen({}: Props) { | ||
return <></>; | ||
|
||
|
||
export default function HomeScreen(){ | ||
return ( | ||
<> | ||
<View style={styles.container}> | ||
|
||
<View style={styles.image}> | ||
<Image source={require('../../assets/images/Group.png')} style={styles.imagex}/> | ||
</View> | ||
|
||
<View> | ||
<Text style={styles.text}>Welcome to Medica! 👋</Text> | ||
<Text style={styles.description}>The best online doctor appointment & consultation app of the century for your health and medical needs!</Text> | ||
</View> | ||
|
||
|
||
</View> | ||
|
||
</> | ||
) | ||
} | ||
|
||
const styles = StyleSheet.create({ | ||
container:{ | ||
flex:1, | ||
justifyContent:'center', | ||
alignItems:'center', | ||
backgroundColor:'#ffff', | ||
paddingTop:50, | ||
paddingBottom:70 | ||
}, | ||
|
||
text:{ | ||
fontSize:40, | ||
textAlign:'center', | ||
paddingLeft:30, | ||
paddingRight:30, | ||
color:'#236bfd', | ||
fontFamily:'Bold', | ||
}, | ||
description:{ | ||
textAlign:'center', | ||
lineHeight:25, | ||
paddingBottom:30, | ||
paddingTop:20, | ||
fontFamily:'Regular', | ||
color:Colors.light.text, | ||
fontSize:17 | ||
}, | ||
image:{ | ||
// width: '100%', | ||
objectFit:'cover', | ||
height:'70%' | ||
}, | ||
imagex:{ | ||
height:'100%' | ||
} | ||
}) |
Oops, something went wrong.