@@ -23,15 +23,16 @@ jobs:
2323 node-version : [10.x, 12.x, 14.x, 15.x]
2424 steps :
2525 - name : Checkout Branch
26- uses : actions/checkout@v2
26+ uses : actions/checkout@v4
2727 - name : Use Node.js ${{ matrix.node-version }}
28- uses : actions/setup-node@v1
28+ uses : actions/setup-node@v4
2929 with :
3030 node-version : ${{ matrix.node-version }}
3131 - name : " NPM Build"
3232 run : npm ci; npm run build --if-present
3333 - name : " NPM Test"
3434 run : npm test
35+
3536 android-test :
3637 name : Android Unit Tests
3738 runs-on : ubuntu-latest
@@ -40,28 +41,79 @@ jobs:
4041 working-directory : ./plugin
4142 steps :
4243 - name : Checkout Branch
43- uses : actions/checkout@v2
44+ uses : actions/checkout@v4
4445 - name : " Install JDK 11"
45- uses : actions/setup-java@v2
46+ uses : actions/setup-java@v4
4647 with :
4748 distribution : zulu
4849 java-version : 11
4950 - name : Install NPM
50- uses : actions/setup-node@v1
51+ uses : actions/setup-node@v4
5152 - name : NPM Build
5253 run : |
5354 npm ci
5455 npm run build --if-present
5556 - name : Run Unit Tests
5657 run : ./gradlew test
5758
59+ example-android :
60+ name : Build Example Android App
61+ runs-on : ubuntu-latest
62+ defaults :
63+ run :
64+ working-directory : ./example
65+ steps :
66+ - name : Checkout Branch
67+ uses : actions/checkout@v4
68+ - name : Setup Java
69+ uses : actions/setup-java@v4
70+ with :
71+ distribution : zulu
72+ java-version : 17
73+ - name : Setup Node.js
74+ uses : actions/setup-node@v4
75+ with :
76+ node-version : 22
77+ - name : Install Cordova
78+ run : npm install -g cordova
79+ - name : Install Dependencies
80+ run : npm ci
81+ - name : Add Android Platform
82+ run : cordova platform add android
83+ - name : Build Android
84+ run : cordova build android
85+
86+ example-ios :
87+ name : Build Example iOS App
88+ runs-on : macos-latest
89+ defaults :
90+ run :
91+ working-directory : ./example
92+ steps :
93+ - name : Checkout Branch
94+ uses : actions/checkout@v4
95+ - name : Setup Node.js
96+ uses : actions/setup-node@v4
97+ with :
98+ node-version : 22
99+ - name : Install Cordova
100+ run : npm install -g cordova
101+ - name : Install Dependencies
102+ run : npm ci
103+ - name : Add iOS Platform
104+ run : cordova platform add ios
105+ - name : Build iOS
106+ run : cordova build ios
107+
58108 pr-notify :
59109 if : >
60110 github.event_name == 'pull_request' &&
61111 github.event.pull_request.draft == false
62112 needs :
63113 - js-test
64114 - android-test
115+ - example-android
116+ - example-ios
65117 name : Notify GChat
66118 uses : ROKT/rokt-workflows/.github/workflows/oss_pr_opened_notification.yml@main
67119 secrets :
0 commit comments