Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add artifact validation to gradle-tests #2026

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Expand Up @@ -123,17 +123,20 @@ jobs:
- name: 'Setup gradle managed device'
run: |
cd ${{ github.workspace }}/gradle-tests
./gradlew runner:nexusOneSetup -Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect" --no-watch-fs --info
./gradlew runner:nexusOneSetup --write-verification-metadata sha256,pgp -Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect" --no-watch-fs --info
- name: 'Run gradle tests'
run: |
cd ${{ github.workspace }}/gradle-tests
./gradlew nexusOneDebugAndroidTest -Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect" --no-watch-fs --info
./gradlew nexusOneDebugAndroidTest --write-verification-metadata sha256,pgp -Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect" --no-watch-fs --info
shell: bash
- name: 'Upload test reports'
if: success() || failure()
uses: actions/upload-artifact@v3
with:
name: test-reports
path: gradle-tests/**/build/reports/androidTests/
- name: 'Output verification metadata'
run: |
cat ${{ github.workspace }}/gradle-tests/gradle/verification-metadata.xml