Skip to content

Commit 0f04760

Browse files
authored
refactor!: rework to function as remote test runner (#32)
1 parent e06dae3 commit 0f04760

File tree

163 files changed

+30687
-5651
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

163 files changed

+30687
-5651
lines changed

.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
13
# editorconfig.org
4+
25
root = true
36

47
[*]
8+
59
indent_style = space
610
indent_size = 2
11+
712
end_of_line = lf
813
charset = utf-8
914
trim_trailing_whitespace = true

.eslintrc

Lines changed: 0 additions & 21 deletions
This file was deleted.

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.pbxproj -text
2+
# specific for windows script files
3+
*.bat text eol=crlf

.github/actions/setup/action.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Setup
2+
description: Setup Node.js and install dependencies
3+
4+
runs:
5+
using: composite
6+
steps:
7+
- name: Setup Node.js
8+
uses: actions/setup-node@v3
9+
with:
10+
node-version-file: .nvmrc
11+
12+
- name: Cache dependencies
13+
id: yarn-cache
14+
uses: actions/cache@v3
15+
with:
16+
path: |
17+
**/node_modules
18+
.yarn/install-state.gz
19+
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/package.json', '!node_modules/**') }}
20+
restore-keys: |
21+
${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
22+
${{ runner.os }}-yarn-
23+
24+
- name: Install dependencies
25+
if: steps.yarn-cache.outputs.cache-hit != 'true'
26+
env:
27+
YARN_ENABLE_IMMUTABLE_INSTALLS: false
28+
run: |
29+
yarn
30+
npm link
31+
cd example
32+
yarn
33+
shell: bash

.github/workflows/ci.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
10+
jobs:
11+
lint:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
17+
- name: Setup
18+
uses: ./.github/actions/setup
19+
20+
- name: Lint files
21+
run: yarn lint
22+
23+
- name: Typecheck files
24+
run: yarn typecheck
25+
26+
test:
27+
runs-on: macos-latest
28+
timeout-minutes: 10
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v3
32+
33+
- name: Setup
34+
uses: ./.github/actions/setup
35+
36+
- name: Start Metro Bundler
37+
continue-on-error: true
38+
working-directory: ./example
39+
run: nohup sh -c "yarn start > metro.log 2>&1 &"
40+
41+
- name: Run unit tests
42+
working-directory: ./example
43+
# TODO nyc breaks xcodebuild
44+
# run: jet --target=macos --coverage
45+
run: jet --target=macos
46+
47+
- name: Upload Metro Log
48+
uses: actions/upload-artifact@v4
49+
if: always()
50+
with:
51+
name: metro_log
52+
path: metro.log
53+
54+
build-library:
55+
runs-on: ubuntu-latest
56+
steps:
57+
- name: Checkout
58+
uses: actions/checkout@v3
59+
60+
- name: Setup
61+
uses: ./.github/actions/setup
62+
63+
- name: Build package
64+
run: yarn prepare

.gitignore

100755100644
Lines changed: 40 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
1-
**/android/gradlew
2-
**/android/gradlew.bat
3-
**/android/gradle
4-
**/android/.gradle
5-
android/gradlew
6-
android/gradlew.bat
7-
android/gradle
8-
android/.gradle
9-
*.iml
10-
11-
121
# OSX
132
#
143
.DS_Store
154

5+
# XDE
6+
.expo/
7+
8+
# VSCode
9+
.vscode/
10+
jsconfig.json
11+
1612
# Xcode
1713
#
1814
build/
@@ -25,37 +21,60 @@ build/
2521
*.perspectivev3
2622
!default.perspectivev3
2723
xcuserdata
28-
**/xcuserdata
2924
*.xccheckout
3025
*.moved-aside
3126
DerivedData
3227
*.hmap
3328
*.ipa
3429
*.xcuserstate
35-
*.xcworkspace
36-
ios/Pods
37-
38-
30+
project.xcworkspace
3931

4032
# Android/IJ
4133
#
42-
.idea
34+
.classpath
35+
.cxx
4336
.gradle
37+
.idea
38+
.project
39+
.settings
4440
local.properties
41+
android.iml
42+
43+
# Cocoapods
44+
#
45+
example/ios/Pods
46+
47+
# Ruby
48+
example/vendor/
4549

4650
# node.js
4751
#
4852
node_modules/
4953
npm-debug.log
54+
yarn-debug.log
55+
yarn-error.log
5056

5157
# BUCK
5258
buck-out/
5359
\.buckd/
54-
**/android/app/libs
55-
**/android/keystores/debug.keystore
5660
android/app/libs
5761
android/keystores/debug.keystore
58-
.nyc_output
59-
coverage
6062

63+
# Yarn
64+
.yarn/*
65+
!.yarn/patches
66+
!.yarn/plugins
67+
!.yarn/releases
68+
!.yarn/sdks
69+
!.yarn/versions
70+
71+
# Expo
72+
.expo/
73+
74+
# Turborepo
75+
.turbo/
6176

77+
# generated by bob
78+
lib/
79+
coverage/
80+
.nyc_output/

.npmignore

Lines changed: 0 additions & 83 deletions
This file was deleted.

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v18

.watchmanconfig

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1 @@
1-
{
2-
"ignore_dirs": [
3-
".git",
4-
"tests",
5-
"node_modules",
6-
"android/build",
7-
"android/.idea",
8-
"ios/.idea",
9-
"android/.gradle",
10-
"android/gradle",
11-
".idea"
12-
]
13-
}
1+
{}

.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Lines changed: 541 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)