Fix bg #46
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: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| jobs: | |
| lint-test: | |
| uses: ./.github/workflows/lint-test.yml | |
| secrets: inherit | |
| android-build: | |
| runs-on: ubuntu-latest | |
| needs: lint-test | |
| env: | |
| VITE_ONESIGNAL_APP_ID: ${{ vars.ONESIGNAL_APP_ID || secrets.ONESIGNAL_APP_ID }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: npm | |
| - uses: actions/setup-java@v5 | |
| with: | |
| distribution: temurin | |
| java-version: 21 | |
| - uses: android-actions/setup-android@v3.2.2 | |
| - run: npm ci | |
| - run: npm run build | |
| - run: npx capacitor sync android | |
| - run: ./gradlew assembleDebug | |
| working-directory: android | |
| testflight: | |
| if: github.event_name == 'pull_request' | |
| runs-on: macos-26 | |
| needs: [lint-test, android-build] | |
| env: | |
| VITE_ONESIGNAL_APP_ID: ${{ vars.ONESIGNAL_APP_ID || secrets.ONESIGNAL_APP_ID }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: npm | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: "3.4" | |
| bundler-cache: true | |
| - name: Show Xcode version | |
| run: xcodebuild -version | |
| - run: npm ci | |
| - run: npm run build | |
| - run: npx capacitor sync ios | |
| - run: bundle exec fastlane ios testflight_pr | |
| env: | |
| APP_STORE_CONNECT_API_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ID }} | |
| APP_STORE_CONNECT_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_ISSUER_ID }} | |
| APP_STORE_CONNECT_API_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY }} | |
| IOS_CERTIFICATE_P12_BASE64: ${{ secrets.IOS_CERTIFICATE_P12_BASE64 }} | |
| IOS_CERTIFICATE_PASSWORD: ${{ secrets.IOS_CERTIFICATE_PASSWORD }} | |
| IOS_PROVISIONING_PROFILE_BASE64: ${{ secrets.IOS_PROVISIONING_PROFILE_BASE64 }} | |
| - name: Clean signing material | |
| if: always() | |
| run: | | |
| rm -rf build/ios/signing | |
| security delete-keychain build.keychain-db 2>/dev/null || true | |
| security delete-keychain build.keychain 2>/dev/null || true |