Skip to content

Commit c952455

Browse files
committed
publish kite report to github pages
1 parent d95c098 commit c952455

File tree

4 files changed

+36
-12
lines changed

4 files changed

+36
-12
lines changed

.github/workflows/app.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,13 @@ jobs:
5858
run: $SCRIPT_DIR/clone-kite.sh
5959
- name: 'SETUP: Config Git'
6060
run: $SCRIPT_DIR/git-config.sh
61-
- name: 'INSTALL: Install Browsers and Drivers'
61+
- name: 'SETUP: Install Browsers and Drivers'
6262
run: $SCRIPT_DIR/install-kite.sh
6363
env:
6464
KITE_HOME: ${{ runner.workspace }}/KITE
6565
KITE_SCRIPT_DIR: ${{ runner.workspace }}/KITE/scripts/mac
66+
- name: 'PRE-TEST: Display Tools'
67+
run: $SCRIPT_DIR/display-tools.sh
6668
- name: 'TEST: Start Grid'
6769
run: $SCRIPT_DIR/start-kite.sh
6870
env:
@@ -73,9 +75,12 @@ jobs:
7375
env:
7476
KITE_HOME: ${{ runner.workspace }}/KITE
7577
KITE_SCRIPT_DIR: ${{ runner.workspace }}/KITE/scripts/mac
76-
- name: 'POST-TEST: Display Tools'
77-
run: $SCRIPT_DIR/display-tools.sh
78+
- name: 'POST-TEST: Generate Kite Report'
79+
run: $SCRIPT_DIR/generate-kite-report.sh
7880
if: ${{ always() }}
81+
env:
82+
KITE_HOME: ${{ runner.workspace }}/KITE
83+
KITE_SCRIPT_DIR: ${{ runner.workspace }}/KITE/scripts/mac
7984
- name: 'POST-TEST: Upload Artifacts'
8085
uses: actions/upload-artifact@v2
8186
if: ${{ always() }}
@@ -88,3 +93,11 @@ jobs:
8893
${{ runner.workspace }}/KITE/KITE-Example-Test
8994
!${{ runner.workspace }}/KITE/KITE-Example-Test/target
9095
!${{ runner.workspace }}/KITE/KITE-Example-Test/js/node_modules
96+
- name: 'POST-TEST: Update Github Pages with Kite Report'
97+
if: github.ref == 'refs/heads/main'
98+
uses: JamesIves/[email protected]
99+
with:
100+
GITHUB_TOKEN: ${{ secrets.RUDDELL_GITHUB_TOKEN }}
101+
BRANCH: gh-pages # The branch the action should deploy to.
102+
FOLDER: test/kite/allure-report # The folder the action should deploy.
103+
CLEAN: true # Automatically remove deleted files from the deploy branch

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ node_modules
99

1010
# ignore kite files
1111
test/kite/logs
12+
test/kite/allure-report
1213
test/kite/results
1314
test/kite/target
1415
test/kite/kite-allure-reports

README.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,13 @@ webRtcPeer.ontrack = async ({ track, streams }) => {
6060

6161
#### Local Build
6262

63-
Due to [this React issue](https://github.com/facebook/react/issues/13991), to run locally you will need to link `react` in this project and your application.
63+
Fork and clone the repository and run:
64+
65+
```javascript
66+
npm link
67+
```
68+
69+
If you run `npm install`, it will install the peer-dependencies. Due to [this React issue](https://github.com/facebook/react/issues/13991), you will need to link `react` in this project and your application.
6470

6571
```bash
6672
cd node_modules/react
@@ -69,11 +75,3 @@ cd ../../MyApp
6975
npm link react
7076

7177
```
72-
73-
Alternatively, you can package the app and install it directly. Note you will need to re-package the app to apply any changes.
74-
75-
```bash
76-
npm pack
77-
cd ../MyApp
78-
npm install ../react-native-webrtc-web-shim/react-native-webrtc-web-shim-*.tgz
79-
```

test/scripts/generate-kite-report.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
3+
cd ../KITE
4+
5+
# configure $KITE_HOME
6+
./configureMacCI.sh
7+
8+
echo 'Running tests...'
9+
cd $GITHUB_WORKSPACE/test/kite
10+
11+
# generates static site for report in allure-report folder
12+
$KITE_HOME/third_party/allure-2.10.0/bin/allure generate kite-allure-reports

0 commit comments

Comments
 (0)