Skip to content

Commit

Permalink
Create GitHub Actions for Cordova (#968)
Browse files Browse the repository at this point in the history
  • Loading branch information
peitschie authored May 6, 2023
1 parent 5f0ca3d commit 9c29e21
Showing 1 changed file with 77 additions and 0 deletions.
77 changes: 77 additions & 0 deletions .github/workflows/cordova.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: Cordova

on:
workflow_dispatch:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
cordova-android:
name: android@${{ matrix.platform }} cordova@${{ matrix.cordova }}

runs-on: ubuntu-latest

strategy:
matrix:
include:
- jdk: 16
cordova: latest
platform: latest
node: 18.x
- jdk: 11
cordova: 11.1.0
platform: 10.1.2
node: 14.x
- jdk: 8
cordova: 10.0.0
platform: 10.1.2
node: 14.x

steps:
- uses: actions/checkout@v3
- name: set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.jdk }}
distribution: 'temurin'
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Build test app
run: |
npm install -g cordova@${{ matrix.cordova }}
cordova create temp
cd temp
cordova platform add android@${{ matrix.platform }}
cordova plugin add .. --noregistry --force --link
cordova build android
cordova-ios:
name: ios@${{ matrix.platform }} cordova@${{ matrix.cordova }}

runs-on: macos-latest

strategy:
matrix:
include:
- cordova: latest
platform: latest
node: 18.x

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Build test app
run: |
npm install -g cordova@${{ matrix.cordova }}
cordova create temp
cd temp
cordova platform add ios@${{ matrix.platform }}
cordova plugin add .. --noregistry --force --link
cordova build ios

0 comments on commit 9c29e21

Please sign in to comment.