This file contains hidden or 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
| name: Test & Publish | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| publish: | |
| name: Install and publish | |
| runs-on: ubuntu-latest | |
| steps: |
This file contains hidden or 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
| name: Preview on Expo | |
| on: [pull_request] | |
| jobs: | |
| publish: | |
| name: Install and publish | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - uses: actions/setup-node@v1 | |
| with: |
This file contains hidden or 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
| name: Run test suite | |
| on: [pull_request] | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: |
This file contains hidden or 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
| import React from 'react'; | |
| import {render, cleanup, fireEvent} from 'react-native-testing-library'; | |
| import App from './App'; | |
| afterEach(cleanup); | |
| describe('<App />', () => { | |
| it('should match snapshot', () => { | |
| const rendered = render(<App />).toJSON(); |
This file contains hidden or 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
| import React, {useState} from 'react'; | |
| import { StyleSheet, Text, View, Button } from 'react-native'; | |
| export default function App() { | |
| const [counter, setCounter] = useState(0); | |
| return ( | |
| <View style={styles.container}> | |
| <Text | |
| style={styles.label} | |
| testID={'counter'} |
This file contains hidden or 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
| module.exports = { | |
| projects: [ | |
| { preset: 'jest-expo/ios' }, | |
| { preset: 'jest-expo/android' } | |
| ], | |
| transformIgnorePatterns: [ | |
| 'node_modules/(?!(jest-)?react-native|react-native-base64|react-clone-referenced-element|@react-native-community|expo(nent)?|@expo(nent)?/.*|react-utils|@react-utils/.*|@unimodules/.*|sentry-expo|native-base)' | |
| ], | |
| }; |
This file contains hidden or 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
| import React from 'react'; | |
| import IssueList from './IssueList'; | |
| import { | |
| ExpansionPanel, | |
| ExpansionPanelSummary, | |
| ExpansionPanelDetails, | |
| Typography, | |
| Chip, | |
| makeStyles | |
| } from '@material-ui/core'; |
This file contains hidden or 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
| import React, {useState} from 'react'; | |
| import {Dialog, DialogContent, ListItem, ListItemText} from '@material-ui/core' | |
| const Issue = ({title, bodyHTML}) => { | |
| const [dialogOpened, setDialogOpened] = useState(false); | |
| return ( | |
| <> | |
| <ListItem button onClick={() => setDialogOpened(true)}> | |
| <ListItemText>{title}</ListItemText> | |
| </ListItem> |
This file contains hidden or 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
| import React, {useState, useEffect} from 'react'; | |
| import {useQuery} from "@apollo/react-hooks"; | |
| import {Typography, makeStyles, CircularProgress} from "@material-ui/core"; | |
| import {useDebounce} from "use-debounce"; | |
| import {SEARCH_FOR_REPOS} from "./queries"; | |
| import Repository from "./Repository"; | |
| const useStyles = makeStyles({ | |
| note: { | |
| marginTop: '1rem', |
This file contains hidden or 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
| import React from 'react'; | |
| import { | |
| ExpansionPanel, | |
| ExpansionPanelSummary, | |
| ExpansionPanelDetails, | |
| Typography, | |
| Chip, | |
| makeStyles | |
| } from "@material-ui/core"; | |
| import StarIcon from '@material-ui/icons/Star'; |