Skip to content

Commit

Permalink
ci: add example build CI
Browse files Browse the repository at this point in the history
  • Loading branch information
robsonos committed Dec 19, 2023
1 parent 9460dae commit 316f4fb
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 6 deletions.
24 changes: 23 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,28 @@ jobs:
- name: Lint
run: yarn lint

build-example:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'yarn'

- name: Install dependencies
run: yarn install --frozen-lockfile
working-directory: example

- name: Build example
run: yarn build
working-directory: example

verify-android:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -76,7 +98,7 @@ jobs:

create-pr:
runs-on: ubuntu-latest
needs: [lint, verify-ios, verify-android]
needs: [lint, verify-ios, verify-android, build-example]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion example/android/app/capacitor.build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ android {
apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle"
dependencies {
implementation project(':capacitor-community-bluetooth-le')
implementation project(':capacitor-community-nordic-dfu')
implementation project(':capacitor-filesystem')
implementation project(':capawesome-capacitor-file-picker')
implementation project(':capacitor-community-nordic-dfu')

}

Expand Down
6 changes: 3 additions & 3 deletions example/android/capacitor.settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/
include ':capacitor-community-bluetooth-le'
project(':capacitor-community-bluetooth-le').projectDir = new File('../node_modules/@capacitor-community/bluetooth-le/android')

include ':capacitor-community-nordic-dfu'
project(':capacitor-community-nordic-dfu').projectDir = new File('../node_modules/capacitor-community-nordic-dfu/android')

include ':capacitor-filesystem'
project(':capacitor-filesystem').projectDir = new File('../node_modules/@capacitor/filesystem/android')

include ':capawesome-capacitor-file-picker'
project(':capawesome-capacitor-file-picker').projectDir = new File('../node_modules/@capawesome/capacitor-file-picker/android')

include ':capacitor-community-nordic-dfu'
project(':capacitor-community-nordic-dfu').projectDir = new File('../../android')
2 changes: 1 addition & 1 deletion example/ios/App/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ def capacitor_pods
pod 'Capacitor', :path => '../../node_modules/@capacitor/ios'
pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios'
pod 'CapacitorCommunityBluetoothLe', :path => '../../node_modules/@capacitor-community/bluetooth-le'
pod 'CapacitorCommunityNordicDfu', :path => '../../node_modules/capacitor-community-nordic-dfu'
pod 'CapacitorFilesystem', :path => '../../node_modules/@capacitor/filesystem'
pod 'CapawesomeCapacitorFilePicker', :path => '../../node_modules/@capawesome/capacitor-file-picker'
pod 'CapacitorCommunityNordicDfu', :path => '../../..'
end

target 'App' do
Expand Down

0 comments on commit 316f4fb

Please sign in to comment.