Skip to content

Commit

Permalink
feat(ci): migrate to svarog cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
Malinskiy committed Jan 21, 2024
1 parent ac6af65 commit eed1deb
Showing 1 changed file with 2 additions and 59 deletions.
61 changes: 2 additions & 59 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: ci
on: [push, pull_request]
jobs:
test:
runs-on: macos-12
runs-on: svarog
steps:
- uses: actions/checkout@v1
- name: Set up JDK 11
Expand Down Expand Up @@ -37,61 +37,4 @@ jobs:
- 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: macos-12
strategy:
matrix:
api: [ 21, 22, 23, 24, 25, 26, 28, 29, 30, 31, 33 ]
steps:
- uses: actions/checkout@v1
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '11'
- uses: malinskiy/action-android/install-sdk@release/0.1.4
- name: integration test
uses: malinskiy/action-android/emulator-run-cmd@release/0.1.4
timeout-minutes: 25
with:
cmd: ./gradlew :adam:integrationTest
cmdOptions: -no-snapshot-save -noaudio -no-boot-anim -cores 2 -memory 3072 -no-window -gpu swiftshader_indirect -grpc 8554
api: ${{ matrix.api }}
tag: google_apis
abi: x86_64
bootTimeout: 1200
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: always()
with:
report_paths: '**/build/test-results/integrationTest/TEST-*.xml'
- name: Generate integration code coverage report
run: ./gradlew :adam:jacocoIntegrationTestReport
- name: archive integration test results
if: failure()
run: (cd adam/build/reports/tests/integrationTest; zip -r -X ../../../../../integration-test-result.zip .)
- name: Save integration test output
uses: actions/upload-artifact@master
if: failure()
with:
name: integration-test-result
path: integration-test-${{ matrix.api }}-result.zip
- name: archive test coverage
run: (cd adam/build/reports/jacoco/jacocoIntegrationTestReport/html; zip -r -X ../../../../../../integration-test-coverage.zip .)
- name: Save coverage output
uses: actions/upload-artifact@master
with:
name: integration-test-${{ matrix.api }}-coverage
path: integration-test-coverage.zip
- name: Save logcat output
uses: actions/upload-artifact@master
if: failure()
with:
name: logcat-${{ matrix.api }}
path: artifacts/logcat.log
- name: codecov integartion tests
run: bash <(curl -s https://codecov.io/bash) -f ./adam/build/reports/jacoco/jacocoIntegrationTestReport/jacocoIntegrationTestReport.xml -F integration
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit eed1deb

Please sign in to comment.