Skip to content

Commit e98545f

Browse files
authored
Merge pull request #618 from callstack-internal/feature/reassure
Add Reassure tests (Phase 1)
2 parents fc541c1 + 9c7d14d commit e98545f

24 files changed

Lines changed: 29001 additions & 27016 deletions
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Set up Node
2+
description: Set up Node
3+
4+
inputs:
5+
IS_HYBRID_BUILD:
6+
description: "Indicates if node is set up for hybrid app"
7+
required: false
8+
default: 'false'
9+
10+
outputs:
11+
cache-hit:
12+
description: Was there a cache hit on the main node_modules?
13+
value: ${{ steps.cache-node-modules.outputs.cache-hit }}
14+
15+
runs:
16+
using: composite
17+
steps:
18+
- name: Remove E/App version from package-lock.json
19+
shell: bash
20+
run: jq 'del(.version, .packages[""].version)' package-lock.json > normalized-package-lock.json
21+
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version-file: '.nvmrc'
25+
cache: npm
26+
cache-dependency-path: |
27+
normalized-package-lock.json
28+
29+
- id: cache-node-modules
30+
# v4
31+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
32+
with:
33+
path: node_modules
34+
key: ${{format('{0}-node-modules-{1}', runner.os, hashFiles('package-lock.json', 'patches/**'))}}
35+
36+
- name: Install root project node packages
37+
if: steps.cache-node-modules.outputs.cache-hit != 'true'
38+
uses: nick-fields/retry@3f757583fb1b1f940bc8ef4bf4734c8dc02a5847
39+
with:
40+
timeout_minutes: 30
41+
max_attempts: 3
42+
command: npm ci

.github/actions/validateReassureOutput/action.yaml renamed to .github/actions/javascript/validateReassureOutput/action.yml

File renamed without changes.

0 commit comments

Comments
 (0)