Skip to content
This repository was archived by the owner on Dec 14, 2022. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ package-lock.json
package.json

!tsconfig.json
!.eslintrc.js
!.eslintrc.js
wdio.conf.js
31 changes: 31 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,35 @@ jobs:
github_branch="${{ github.ref }}"
github_branch=${github_branch//refs\/heads\//}
expo publish --release-channel=dev.${github_branch//\//-}
android-e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- uses: actions/cache@v2
with:
path: |
~/.npm
**/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: echo '${{ secrets.APP_JSON }}' > app.json
- run: npm ci
- name: setup JDK
uses: actions/setup-java@v1
with:
java-version: 12
java-package: jdk
architecture: x64
- name: install appium dependencies (which must be installed globally)
run:
- npm i -g opencv4nodejs mjpeg-consumer
- apt install ffmpeg
- name: check if Appium is happy
run: npx appium-doctor --android



4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ yarn.lock
coverage
android.json
ios.json

*.apk
*.aab
*.ipa
9 changes: 4 additions & 5 deletions components/Typography/ButtonText.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import React from 'react'
import { Text, TextStyle } from 'react-native'

import { Text, TextProps, TextStyle } from 'react-native'
import Style from "../../styles/Typography"

interface Props {
interface Props extends TextProps {
style?: TextStyle,
children: React.ReactElement | string,
}

const ButtonText: React.FunctionComponent<Props> = ({ children, style }) => (
<Text style={[Style.buttonText, style]}>{children}</Text>
const ButtonText: React.FunctionComponent<Props> = ({ children, style, ...otherProps }) => (
<Text style={[Style.buttonText, style]} {...otherProps}>{children}</Text>
)

export default ButtonText
8 changes: 8 additions & 0 deletions e2e-tests/App.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import 'webdriverio'

describe(`App`, () => {
it(`should display login screen on start`, async () => {
(await $(`~login-button`)).waitForDisplayed({ timeout: 10000 })
browser.saveScreenshot(`./screenshot.png`)
})
})
Loading