Skip to content

Commit

Permalink
feat: Added github workflow to run test cases on every push and pull …
Browse files Browse the repository at this point in the history
…request
  • Loading branch information
ajaykumar97 committed Sep 8, 2021
1 parent 2b9d532 commit 1a18159
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 53 deletions.
52 changes: 0 additions & 52 deletions .github/workflows/documentation.yml

This file was deleted.

15 changes: 15 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: run tests
on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
- name: install deps
run: cd template && npm ci
- name: run tests
run: cd template && npm run test
2 changes: 1 addition & 1 deletion template/__tests__/App-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import 'react-native';
import React from 'react';
import App from '../App';
import App from '../src/App';

// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
Expand Down

0 comments on commit 1a18159

Please sign in to comment.