11name : ci
2+ env :
3+ CI : true
4+ FORCE_COLOR : 1
25on :
36 push :
47 branches :
@@ -11,16 +14,16 @@ jobs:
1114 check :
1215 runs-on : ubuntu-latest
1316 steps :
14- - uses : actions/checkout@v2
15- - run : npm install
16- - run : npx aegir lint
17- 18- - run : npx aegir build
19- - run : npx aegir dep-check
20- - uses : ipfs/aegir/actions/bundle-size@master
21- name : size
22- with :
23- github_token : ${{ secrets.GITHUB_TOKEN }}
17+ - uses : actions/checkout@v2
18+ - run : npm install
19+ - run : npx aegir lint
20+ 21+ - run : npx aegir build
22+ - run : npx aegir dep-check
23+ - uses : ipfs/aegir/actions/bundle-size@master
24+ name : size
25+ with :
26+ github_token : ${{ secrets.GITHUB_TOKEN }}
2427 test-node :
2528 needs : check
2629 runs-on : ${{ matrix.os }}
6467 steps :
6568 - uses : actions/checkout@v2
6669 - run : npm install
67- - run : npx xvfb-maybe aegir test -t electron-renderer --bail
70+ - run : npx xvfb-maybe aegir test -t electron-renderer --bail
71+ test-react-native-android :
72+ runs-on : macos-latest
73+ needs : check
74+ steps :
75+ - uses : actions/checkout@v2
76+ - run : npm install
77+ - uses : reactivecircus/android-emulator-runner@v2
78+ with :
79+ api-level : 29
80+ target : default
81+ arch : x86_64
82+ profile : pixel
83+ avd-name : aegir-android-29
84+ script : |
85+ npx aegir test -t react-native-android
86+ # test-react-native-ios:
87+ # runs-on: macos-latest
88+ # steps:
89+ # - uses: actions/checkout@v2
90+ # - run: npm install
91+ # - name: Create and run iOS simulator
92+ # run: |
93+ # SIMULATOR_RUNTIME=$(echo "iOS 14.4" | sed 's/[ \.]/-/g')
94+ # SIMULATOR_ID=$(xcrun simctl create "iPhone 11" com.apple.CoreSimulator.SimDeviceType.iPhone-11 com.apple.CoreSimulator.SimRuntime.$SIMULATOR_RUNTIME)
95+ # echo "IOS_SIMULATOR=$SIMULATOR_ID" >> $GITHUB_ENV
96+ # xcrun simctl boot $SIMULATOR_ID &
97+ # - run: npx rn-test --platform ios --simulator 'iPhone 11 (14.4)' --rn 0.62.0 'test/**/*.spec.js'
98+ # - name: Shutdown iOS simulator
99+ # run: |
100+ # xcrun simctl shutdown $IOS_SIMULATOR
0 commit comments