Skip to content

Commit

Permalink
Merge branch 'main' into registration-onboarding
Browse files Browse the repository at this point in the history
  • Loading branch information
celineehusen committed Apr 18, 2024
2 parents 0973052 + 5cdd0ac commit b6dd5f5
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 4 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@

name: Expo Preview
on: [
pull_request
]

jobs:

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x

uses: actions/setup-node@v4
with:
node-version: 18.x

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm test

create_preview:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v3

- name: Use Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: 18.x

- name: Setup EAS
uses: expo/expo-github-action@v8
with:
packager: npm
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}

- name: Install dependencies
run: npm install

- name: 🚀 Create preview
uses: expo/expo-github-action/preview@v8
with:
command: eas update --auto
16 changes: 13 additions & 3 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"expo": {
"name": "SwiftByteEat",
"slug": "SwiftByteEat",
"slug": "swift-byte-eat",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/images/icon.png",
Expand All @@ -16,7 +16,8 @@
"**/*"
],
"ios": {
"supportsTablet": true
"supportsTablet": true,
"bundleIdentifier": "com.swiftbyte.swiftbyteeat"
},
"android": {
"adaptiveIcon": {
Expand All @@ -34,6 +35,15 @@
],
"experiments": {
"typedRoutes": true
}
},
"extra": {
"router": {
"origin": false
},
"eas": {
"projectId": "996deca2-61b1-46b7-a6e2-7b36dca33010"
}
},
"owner": "swiftbyte"
}
}
21 changes: 21 additions & 0 deletions components/__tests__/__snapshots__/StyledText-test.js.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`renders correctly 1`] = `
<Text
style={
[
{
"color": "#1D3D30",
},
[
undefined,
{
"fontFamily": "SpaceMono",
},
],
]
}
>
Snapshot test!
</Text>
`;
18 changes: 18 additions & 0 deletions eas.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"cli": {
"version": ">= 7.6.2"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal"
},
"preview": {
"distribution": "internal"
},
"production": {}
},
"submit": {
"production": {}
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"test": "jest --watchAll"
"test": "jest"
},
"jest": {
"preset": "jest-expo"
Expand Down

0 comments on commit b6dd5f5

Please sign in to comment.