Commit Graph

151 Commits

Author SHA1 Message Date
Johannes Klein
511682f4de Revert "Update android.yml"
This reverts commit 4b907e6a4a.
2022-12-15 15:37:59 +01:00
Johannes Klein
4b907e6a4a Update android.yml 2022-12-15 15:35:11 +01:00
Johannes Klein
5fd4b90140 Update android.yml 2022-12-15 15:30:07 +01:00
Johannes Klein
66d9ceaaef Update android.yml 2022-12-15 14:35:29 +01:00
Johannes Klein
efc796564d Update android.yml 2022-12-15 14:09:26 +01:00
Johannes Klein
c6ff91f9bb Update android.yml 2022-12-15 14:04:41 +01:00
Johannes Klein
cdc6cdd542 Update android.yml 2022-12-15 14:01:49 +01:00
Johannes Klein
251dc55d27 Update android.yml 2022-12-15 13:55:43 +01:00
Johannes Klein
0720a56bc9 Update android.yml 2022-12-15 13:52:06 +01:00
Johannes Klein
e7310c5fa9 Use debug build for Android 2022-12-15 13:24:00 +01:00
Johannes Klein
8856a986bb Update android.yml 2022-12-14 22:11:23 +01:00
Johannes Klein
8a20ecc7c5 Update android.yml 2022-12-14 21:25:03 +01:00
Johannes Klein
e364d1f15c Update android.yml 2022-12-14 21:10:26 +01:00
Johannes Klein
234c3cfc03 Update android.yml 2022-12-14 20:55:32 +01:00
Johannes Klein
561543d31d Update android.yml 2022-12-14 20:32:06 +01:00
Johannes Klein
a5ee9cad11 Update android.yml 2022-12-14 20:26:39 +01:00
Johannes Klein
9c458841fa Update android.yml 2022-12-14 20:14:12 +01:00
Johannes Klein
4b64802189 Comment out caching 2022-12-14 19:55:26 +01:00
Johannes Klein
aeae44b4c0 Update android.yml 2022-12-14 19:45:38 +01:00
Johannes Klein
e94a56818d Update android.yml 2022-12-14 19:42:52 +01:00
Johannes Klein
9bda4a8bca Rename CI emulator 2022-12-14 19:38:53 +01:00
Johannes Klein
b645ea7ac8 MacOS runner should have java installed already 2022-12-14 19:32:56 +01:00
Johannes Klein
579ccab261 Try another java distribution 2022-12-14 18:19:15 +01:00
Johannes Klein
259652e53c Update android.yml 2022-12-14 18:14:14 +01:00
Johannes Klein
cdc3ec9bcb Replace java setup action 2022-12-14 18:13:54 +01:00
Johannes Klein
35a72404f5 Change java distribution 2022-12-14 18:07:58 +01:00
Johannes Klein
47ccb5adb9 Create android.yml 2022-12-14 17:58:31 +01:00
Johannes Klein
eb81453e60 Merge branch 'main' into 250-e2e-init 2022-12-13 22:31:58 +01:00
Johannes Klein
5a2e61da4a Rename workflow steps 2022-12-11 22:25:41 +01:00
Johannes Klein
3b08b6a0ca Enable CI testing 2022-12-06 12:09:33 +01:00
Johannes Klein
66e890e198 Cache ci node modules (#261) 2022-12-05 18:58:12 -08:00
Johannes Klein
4617d5fb3d Update e2e.md 2022-12-05 17:53:31 +01:00
Johannes Klein
8c005c47dc Comment out CI workflow 2022-12-05 16:11:53 +01:00
Johannes Klein
8909f6c1c3 Only use CI on pull requests 2022-12-05 16:07:52 +01:00
Johannes Klein
8dc25ff18d Update e2e.yml 2022-12-05 15:12:41 +01:00
Johannes Klein
46fdcece25 Update e2e.yml 2022-12-05 14:41:49 +01:00
Johannes Klein
a2ae2c4b27 Update e2e.yml 2022-12-05 14:21:04 +01:00
Johannes Klein
29a72f9c64 Update e2e.yml 2022-12-05 14:13:37 +01:00
Johannes Klein
c0ae9ae6f1 Update e2e.yml 2022-12-05 14:12:00 +01:00
Johannes Klein
3ddd519693 Test on push 2022-12-05 14:06:46 +01:00
Johannes Klein
6b7352f21f Testing e2e on GitHub Actions 2022-12-05 14:06:10 +01:00
Johannes Klein
99d306cd24 Realm 11 (#208)
This also upgrades us to React Native 0.70.4 and adds a number of files that get us ready for the New Architecture.

Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>
2022-11-07 14:13:13 -08:00
Ken-ichi Ueda
1e4fff96cf Upgraded actions in test workflow 2022-11-02 16:14:30 -07:00
Ken-ichi Ueda
1b5599f95c Skip legacy peer deps when running CI tests 2022-06-28 12:27:27 -07:00
Ken-ichi
93788014f7 Try to run eslint and flow as a part of CI (#115) 2022-06-14 14:45:00 -07:00
Ken-ichi
d773b2120f Restore skip-duplicate-actions (#39) 2022-01-12 17:19:12 -08:00
Amanda Bullington
9ef85a6818 Explore and explore filters (#24)
* Create Explore screen

* Add input field component

* Add input fields

* UI for list view in Explore; dropdown taxa picker

* UI for list view in Explore; dropdown taxa picker

* ObservationViews component is shared between Explore and My Observations

* Get tests passing with Explore + ObservationViews

* Add map view, iOS location permission whenInUse, and geolocation fetch

* Add RN permissions and geolocation to jest mocks

* Explore filters, testing, explore provider/navigation stack

* Crash fix for grid items with no observation photos

* Code cleanup; remove duplicate files

* Remove more duplication

* Consolidate pickers into a single component

* Move copyRealmSchema into Observation model

* Move copyRealmSchema into Observation model

* Move observation photo logic to Obs model

* Obs details fetches an observation from API instead of from realm/exploreList

* Rename hooks files with 'use' instead of 'fetch'

* Add user to observation schema

* Change realm keys from camelcase to snakecase with mapping

* Simplify model code

* Fix tests for ObsDetails

* Attempt to clean up ObsList code; move useObservations hook into provider

* Several minor changes to get tests passing

* Stopped mocking useObservation hook in MyObservations integration test; this
  should not be mocked in an integration test since the point is to test the
  integration of all the different moving pieces within the app, and it was
  causing a failure because it was mocked but none of the methods were
  actually provided with mock responses, so it wasn't doing anything
* Used the LocalObservation factory for ObsDetails.test.js, where the
  useObservation hook should return an observation in the Realm schema
  (or something like it), not in the remote schema
* Updated the LocalObservation factory to meet expectations

* Attempting to work around weird problem with fkirc/skip-duplicate-actions

* Removed fkirc/skip-duplicate-actions from CI for now

* CI fix

Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>
2022-01-07 11:38:50 -08:00
Ken-ichi
523da746f2 Several updates to testing (#17)
* Several updates to testing

* Restructured tests so they are in their own dir at the root
* Added an integration test that mocks the response from inaturalistjs
* Instead of mocking Realm, I mocked the Realm config so it writes to an
  in-memory database for tests
* Added test data factories with factoria and faker

TODO
* Try mocking hooks to make a unit tests for the ObsList component; it should
  be possible to write unit tests for components with hooks
* Data in the in-memory Realm db is probably sticking around between tests; we
  need a way to trash the db after each test

* Tried to address logbox failure in Github Actions test run

* Tried bumping the timeout for tests for github actions

* Added skip duplicates and Slack notification to test action

* Added unit test for ObsList

* Seriously, how much time do you need to run a test...

* Added missing factory import

* Test fixes for context & providers

* DRY out ObsList.test.js a bit

* Made ObsList.test.js synchronous

In theory I suspect all component tests should be synchronous because if
you've mocked out all the hooks, there should be no reason to wait for
effects to complete.

Also removed subscriptionRef which didn't seem to be doing anything.
2021-11-19 13:53:44 -08:00
Amanda Bullington
d6d4b5aa01 Test and github actions fixes 2021-11-04 17:16:05 -07:00
Amanda Bullington
a113ba97a4 Switch to npm install 2021-11-04 17:09:50 -07:00