Skip to content

GitHub Actions test workflow #257

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 25, 2023
Merged
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
33 changes: 33 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Test

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
test:
runs-on: ubuntu-latest
name: Test
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node.js and Yarn
uses: actions/setup-node@v3
with:
node-version: '18'

- uses: actions/cache@v3
id: cache
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}

- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile && yarn --cwd test install --frozen-lockfile

- name: Test
run: yarn test
7 changes: 2 additions & 5 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,8 @@ export function Hook() {
<>
{/* eslint-disable-next-line react-native/no-inline-styles, react-native/no-color-literals */}
<View style={{ color: 'blue' }}>
{/* eslint-disable-next-line react-native-a11y/has-accessibility-hint */}
<View accessibilityLabel={'xd'}>
{/* eslint-disable-line react-native/no-raw-text */}
raw text with no accessibility hint on a view
</View>
{/* eslint-disable-line react-native/no-raw-text */}
raw text with no accessibility hint on a view
</View>
<Bool />
</>
Expand Down
7 changes: 2 additions & 5 deletions test/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,8 @@ export function Hook() {
<>
{/* eslint-disable-next-line react-native/no-inline-styles, react-native/no-color-literals */}
<View style={{ color: 'blue' }}>
{/* eslint-disable-next-line react-native-a11y/has-accessibility-hint */}
<View accessibilityLabel={'xd'}>
{/* eslint-disable-line react-native/no-raw-text */}
raw text with no accessibility hint on a view
</View>
{/* eslint-disable-line react-native/no-raw-text */}
raw text with no accessibility hint on a view
</View>
<Bool />
</>
Expand Down