mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2025-12-23 22:18:36 -05:00
Add Github Actions config file for unit tests
This commit is contained in:
29
.github/workflows/test.yml
vendored
Normal file
29
.github/workflows/test.yml
vendored
Normal 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
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user