tmp: CI on all branches #7
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: CI | ||
on: | ||
push: | ||
branches: ** | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
jobs: | ||
setup: | ||
uses: ./.github/workflows/reusable_setup.yml | ||
lint: | ||
needs: 'setup' | ||
uses: ./.github/workflows/reusable_lint.yml | ||
build: | ||
needs: 'setup' | ||
uses: ./.github/workflows/reusable_build.yml | ||
verify-plugin: | ||
needs: ['setup', 'lint', 'build'] | ||
runs-on: 'macos-15' | ||
timeout-minutes: 30 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: 'Setup Tools' | ||
uses: ./.github/actions/setup-tools | ||
- name: 'Verify iOS + Android + Web' | ||
working-directory: ./packages/capacitor-plugin | ||
run: npm run verify | ||
check-example-app: | ||
needs: ['verify-plugin'] | ||
runs-on: 'macos-15' | ||
timeout-minutes: 30 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: 'Setup Tools' | ||
uses: ./.github/actions/setup-tools | ||
- name: 'Build plugin' | ||
working-directory: ./packages/capacitor-plugin | ||
run: npm run build | ||
- name: 'Install example app dependencies' | ||
working-directory: ./packages/example-app-capacitor | ||
run: npm i | ||
- name: 'Build example app' | ||
working-directory: ./packages/example-app-capacitor | ||
run: npm run build | ||
- name: 'Sync example app platforms' | ||
working-directory: ./packages/example-app-capacitor | ||
run: npx cap sync --deployment |