chore: release 4.0.0 #60
This file contains 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: test | |
on: | |
push: | |
branches: [ 'main' ] | |
pull_request: | |
branches: [ 'main' ] | |
jobs: | |
test_web: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Capacitor Web | |
uses: ./.github/actions/capacitor-setup-web | |
- name: Run Tests | |
run: npm run test | |
test_ios: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Capacitor iOS | |
uses: ./.github/actions/capacitor-setup-ios | |
- name: Run Tests | |
env: | |
DEVELOPER_DIR: /Applications/Xcode_15.4.app | |
run: | | |
cd ios | |
xcodebuild \ | |
-quiet \ | |
-workspace Plugin.xcworkspace \ | |
-scheme Plugin \ | |
-sdk iphonesimulator \ | |
-destination 'platform=iOS Simulator,name=iPhone 15,OS=17.4' \ | |
test || exit 1 | |
test_android: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Capacitor Android | |
uses: ./.github/actions/capacitor-setup-android | |
- name: Run Tests | |
uses: reactivecircus/android-emulator-runner@v2 | |
with: | |
api-level: 29 | |
working-directory: android/ | |
script: ./gradlew clean build test connectedAndroidTest |