Add Github Actions config file for unit tests

This commit is contained in:
Amanda Bullington
2021-11-04 17:00:16 -07:00
parent 67f130fe59
commit e0f40926bb
2 changed files with 30 additions and 1 deletions

29
.github/workflows/test.yml vendored Normal file
View File

@@ -0,0 +1,29 @@
##
# Run unit test and the action itself
##
name: Unit Test
on:
pull_request:
push:
branches:
- main
- feature/**
jobs:
# unit tests
unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm ci
- run: npm test
# test action works running from the graph
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm ci
- uses: ./
with:
milliseconds: 1000

View File

@@ -1,5 +1,5 @@
import React from "react";
import { render } from "@testing-library/react-native";
// import { render } from "@testing-library/react-native";
import { NavigationContainer } from "@react-navigation/native";
import inatjs from "inaturalistjs";
import AccessibilityEngine from "react-native-accessibility-engine";