Skip to content
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

Add Reassure tests (Phase 1) #618

Open
wants to merge 33 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
78f09d0
Update Reassure version and docs
fabioh8010 Feb 17, 2025
cfa3b88
Add empty perf test functions
fabioh8010 Feb 17, 2025
ff135bd
Move updateSnapshots to OnyxUtils
fabioh8010 Feb 17, 2025
9fed464
Implement several tests for Onyx.ts
fabioh8010 Feb 19, 2025
1cf0020
Merge remote-tracking branch 'origin/main' into feature/reassure
fabioh8010 Feb 24, 2025
56e358c
Add test for tupleGet
fabioh8010 Feb 24, 2025
215653e
Remove one-object tests
fabioh8010 Feb 24, 2025
a10cde2
Finish tests for Onyx.ts
fabioh8010 Feb 24, 2025
c97ac27
Minor fix
fabioh8010 Feb 24, 2025
32fe4b5
Update Reassure to 1.4.0-next.0
fabioh8010 Mar 9, 2025
8069e53
Use measureAsyncFunction in Onyx.perf-test.ts
fabioh8010 Mar 9, 2025
5a82e9d
Implement some OnyxUtils tests
fabioh8010 Mar 9, 2025
661af4e
Update Reassure to 1.4.0
fabioh8010 Mar 14, 2025
493c31a
Fix Onyx.perf-test.ts tests to correctly set setup/cleanup functions
fabioh8010 Mar 14, 2025
0d330a3
Finish tests for OnyxUtils
fabioh8010 Mar 17, 2025
a7d3c3b
Create variable for Object.keys(mockedReportActionsMap)
fabioh8010 Mar 17, 2025
1389439
Increase test timeout
fabioh8010 Mar 17, 2025
945d57f
Implement tests for OnyxCache
fabioh8010 Mar 23, 2025
fbd4196
Implement tests for OnyxConnectionManager
fabioh8010 Mar 24, 2025
4789b68
Merge branch 'main' into feature/reassure
fabioh8010 Apr 4, 2025
4a34c15
Fix types
fabioh8010 Apr 4, 2025
d98bc3d
Add gh-actions-build command
fabioh8010 Apr 4, 2025
b7f7730
Add compiled GH actions to .prettierignore
fabioh8010 Apr 4, 2025
d144844
Remove .vscode/settings.json
fabioh8010 Apr 4, 2025
c520dd4
Fix Reassure workflow
fabioh8010 Apr 4, 2025
ecd8610
Improve tests
fabioh8010 Apr 4, 2025
e345a47
Improve buildActions.sh script
fabioh8010 Apr 13, 2025
ec952eb
Improve Reassure workflow
fabioh8010 Apr 13, 2025
75a8397
Fix script
fabioh8010 Apr 13, 2025
b963633
Use script from E/App
fabioh8010 Apr 13, 2025
0bbd8fa
Test removing steps
fabioh8010 Apr 13, 2025
0c88d28
Add setupNode YML
fabioh8010 Apr 13, 2025
f82a5a7
Uses fetch-depth 0
fabioh8010 Apr 13, 2025
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
42 changes: 42 additions & 0 deletions .github/actions/composite/setupNode/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Set up Node
description: Set up Node

inputs:
IS_HYBRID_BUILD:
description: "Indicates if node is set up for hybrid app"
required: false
default: 'false'

outputs:
cache-hit:
description: Was there a cache hit on the main node_modules?
value: ${{ steps.cache-node-modules.outputs.cache-hit }}

runs:
using: composite
steps:
- name: Remove E/App version from package-lock.json
shell: bash
run: jq 'del(.version, .packages[""].version)' package-lock.json > normalized-package-lock.json

- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: npm
cache-dependency-path: |
normalized-package-lock.json

- id: cache-node-modules
# v4
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
with:
path: node_modules
key: ${{format('{0}-node-modules-{1}', runner.os, hashFiles('package-lock.json', 'patches/**'))}}

- name: Install root project node packages
if: steps.cache-node-modules.outputs.cache-hit != 'true'
uses: nick-fields/retry@3f757583fb1b1f940bc8ef4bf4734c8dc02a5847
with:
timeout_minutes: 30
max_attempts: 3
command: npm ci
Loading
Loading