-
-
Notifications
You must be signed in to change notification settings - Fork 54
57 lines (47 loc) · 1.6 KB
/
smoke-test-ubuntu-ionic.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Smoke test on Ubuntu (Ionic)
on:
push:
branches:
- master
pull_request:
env:
HUSKY: 0
jobs:
build:
name: Ionic CLI
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Setup JDK 11
uses: actions/[email protected]
with:
distribution: "temurin"
java-version: 11
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: 18
- name: Environment Information
run: |
node --version
npm --version
java -version
- name: Setup Project
run: |
$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager "build-tools;30.0.3"
npm i -g cordova @ionic/cli
ionic start lottie-smoke-test tabs --cordova --type angular --no-interactive --no-confirm
cd lottie-smoke-test
npx ng add @ionic/cordova-builders --skip-confirmation
ionic cordova platform add android@10 --no-interactive --confirm
sed -i '4i\ <preference name="GradlePluginKotlinVersion" value="1.7.22" />' config.xml
sed -i '4i\ <preference name="GradlePluginKotlinEnabled" value="true" />' config.xml
- name: Install Plugins
run: |
cd lottie-smoke-test
ionic cordova plugin add cordova-plugin-androidx-adapter --no-interactive --confirm
ionic cordova plugin add $GITHUB_WORKSPACE --no-interactive --confirm -- --link
- name: Build Project
run: |
cd lottie-smoke-test
ionic cordova build android --no-interactive --confirm