Add Capacitor support and update dependencies, bump to v2 #53
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "CI" | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| name: Build and test | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| node: [20] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| - run: npm ci | |
| - run: npm run all | |
| # merged into integration jobs below | |
| test-cordova: | |
| name: Test (Cordova) on Ubuntu/macOS; iOS on macOS | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 20 | |
| - name: Setup environment | |
| uses: ./ | |
| with: | |
| legacy: true | |
| install-pods: ${{ matrix.os == 'macos-latest' }} | |
| - name: Verify CLI | |
| run: | | |
| cordova -v | |
| ionic info || true | |
| - name: Build Android sample | |
| run: | | |
| ionic start testapp blank --cordova --type angular --no-link --no-git --no-interactive --confirm | |
| cd testapp | |
| ionic cordova platform add android@latest | |
| ionic cordova build android | |
| - name: Build iOS sample (macOS only) | |
| if: ${{ matrix.os == 'macos-latest' }} | |
| run: | | |
| cd testapp | |
| ionic cordova platform add ios@latest | |
| ionic cordova build ios --no-interactive -- --buildFlag="-sdk iphonesimulator" | |
| test-capacitor: | |
| name: Test (Capacitor) on Ubuntu/macOS; iOS on macOS | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 20 | |
| - name: Setup environment | |
| uses: ./ | |
| with: | |
| legacy: false | |
| install-pods: ${{ matrix.os == 'macos-latest' }} | |
| - name: Verify CLI | |
| run: | | |
| cap --version | |
| ionic info || true | |
| - name: Build Android sample | |
| run: | | |
| ionic start testapp blank --type angular --no-link --no-git --no-interactive --confirm | |
| cd testapp | |
| ionic cap add android | |
| ionic cap build android | |
| - name: Build iOS sample (macOS only) | |
| if: ${{ matrix.os == 'macos-latest' }} | |
| run: | | |
| cd testapp | |
| ionic cap add ios | |
| npx cap sync ios | |
| xcodebuild -workspace ios/App/App.xcworkspace -scheme App -sdk iphonesimulator -configuration Debug build |