Skip to content

Commit

Permalink
feat(ci): debug ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Malinskiy committed Jan 22, 2024
1 parent 06c9a6f commit 7fd1dee
Showing 1 changed file with 7 additions and 39 deletions.
46 changes: 7 additions & 39 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,49 +1,11 @@
name: ci
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- uses: malinskiy/action-android/install-sdk@release/0.1.6
- name: build & test
run: ./gradlew assemble test jacocoTestReport
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: always()
with:
report_paths: '**/build/test-results/test/TEST-*.xml'
- name: archive test results
if: failure()
run: (cd adam/build/reports/tests/test; zip -r -X ../../../../../test-result.zip .)
- name: Save test output
uses: actions/upload-artifact@master
if: failure()
with:
name: test-result
path: test-result.zip
- name: archive test coverage
run: (cd adam/build/reports/jacoco/test/html; zip -r -X ../../../../../test-coverage.zip .)
- name: Save coverage output
uses: actions/upload-artifact@master
with:
name: test-coverage
path: test-coverage.zip
- name: codecov unit tests
run: bash <(curl -s https://codecov.io/bash) -f ./adam/build/reports/jacoco/test/jacocoTestReport.xml -F unit
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
integration-test:
needs: test
runs-on: ubuntu-latest
strategy:
matrix:
api: [ 21, 22, 23, 24, 25, 26, 28, 29, 30, 31, 33, 34 ]
api: [ 21 ]
steps:
- uses: actions/checkout@v1
- name: Set up JDK 17
Expand All @@ -57,6 +19,12 @@ jobs:
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- name: test
run: |
ls /home/runner/android-sdk/cmdline-tools
ls /home/runner/android-sdk/cmdline-tools/latest
ls /home/runner/android-sdk/cmdline-tools/latest/bin
ls /home/runner/android-sdk/cmdline-tools/latest/bin/sdkmanager
- name: integration test
uses: malinskiy/action-android/emulator-run-cmd@release/0.1.6
timeout-minutes: 25
Expand Down

0 comments on commit 7fd1dee

Please sign in to comment.