update github action #11
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: Plugin Upgrade | |
| # Trigger manual | |
| on: | |
| push: | |
| branches: | |
| - test/action-plugin-upgrade | |
| jobs: | |
| build: | |
| runs-on: macos-13 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Setup Tools | |
| uses: ./.github/actions/setup-tools | |
| - name: List installed Java versions | |
| run: /usr/libexec/java_home -V | |
| - name: Set Java 17 | |
| run: | | |
| export JAVA_HOME=$(/usr/libexec/java_home -v 17) | |
| echo "JAVA_HOME=$JAVA_HOME" >> $GITHUB_ENV | |
| java -version | |
| - name: Verify Java version | |
| run: java -version | |
| #- name: Build Android | |
| #working-directory: plugin/android | |
| #run: ./gradlew clean build | |
| - name: Run Capacitor Plugin Migration | |
| working-directory: plugin | |
| run: npx @capacitor/plugin-migration-v6-to-v7@latest | |
| - name: Install PNPM dependencies | |
| run: pnpm install --no-frozen-lockfile | |
| working-directory: . | |
| - name: Build project | |
| run: pnpm run build | |
| working-directory: . | |
| - name: Plugin build | |
| working-directory: plugin | |
| run: pnpm run build | |
| - name: Build Android | |
| working-directory: plugin/android | |
| run: ./gradlew clean build |