chore(deps): update CLI to v2.50.0 #1155
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: Test Matrix | |
on: | |
schedule: | |
- cron: '0 4 * * *' | |
push: | |
branches: | |
- main | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
generate-matrix: | |
name: Generate Compat Matrix | |
runs-on: ubuntu-latest | |
outputs: | |
matrix: ${{ steps.generate.outputs.matrix }} | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Generate Compat Matrix | |
id: generate | |
run: | | |
# Run the script and capture full output for debugging | |
full_output=$(kotlin scripts/generate-compat-matrix.main.kts) | |
# Show the full output for debugging | |
echo "Full script output:" | |
echo "$full_output" | |
# Extract only the last line (the JSON matrix) | |
matrix=$(echo "$full_output" | tail -n 1) | |
echo "matrix<<EOF" >> "$GITHUB_OUTPUT" | |
echo "$matrix" >> "$GITHUB_OUTPUT" | |
echo "EOF" >> "$GITHUB_OUTPUT" | |
echo "Parsed matrix:" | |
echo "$matrix" | jq | |
publish-dry-run: | |
needs: generate-matrix | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: ${{ fromJson(needs.generate-matrix.outputs.matrix) }} | |
name: Test Matrix - AGP ${{ matrix.agp }} - Gradle ${{ matrix.gradle }} - Java ${{ matrix.java }} - Groovy ${{ matrix.groovy }} | |
env: | |
VERSION_AGP: ${{ matrix.agp }} | |
VERSION_GROOVY: ${{ matrix.groovy }} | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Setup Java Version | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java }} | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # pin@v4 | |
with: | |
gradle-version: ${{ matrix.gradle }} | |
- name: Build the Release variants and integrationTest | |
run: gradle assembleRelease bundleRelease integrationTest | |
- name: Check sentry-debug-meta.properties inside APKs | |
run: | | |
unzip ./examples/android-gradle/build/outputs/apk/release/android-gradle-release-unsigned.apk -d output | |
cat output/assets/sentry-debug-meta.properties | |
rm -r output | |
unzip ./examples/android-gradle-kts/build/outputs/apk/release/android-gradle-kts-release-unsigned.apk -d output | |
cat output/assets/sentry-debug-meta.properties | |
rm -r output | |
- name: Check sentry-debug-meta.properties inside App Bundle | |
run: | | |
unzip ./examples/android-gradle/build/outputs/bundle/release/android-gradle-release.aab -d output | |
cat output/base/assets/sentry-debug-meta.properties | |
rm -r output | |
unzip ./examples/android-gradle-kts/build/outputs/bundle/release/android-gradle-kts-release.aab -d output | |
cat output/base/assets/sentry-debug-meta.properties | |
rm -r output | |
- name: Upload Test Results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: test-results-AGP${{ matrix.agp }}-Gradle${{ matrix.gradle }} | |
path: plugin-build/build/reports/tests/ | |
if: always() |