2019-11-13 15:49:22 -05:00
|
|
|
name: Android CI
|
|
|
|
|
2020-03-19 11:03:42 -03:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
2022-04-29 17:20:24 -04:00
|
|
|
- 'main'
|
2024-11-14 11:01:43 -05:00
|
|
|
- '7.**'
|
2019-11-13 15:49:22 -05:00
|
|
|
|
2022-09-25 17:01:38 +02:00
|
|
|
permissions:
|
|
|
|
contents: read # to fetch code (actions/checkout)
|
|
|
|
|
2019-11-13 15:49:22 -05:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
2023-03-02 09:13:54 -06:00
|
|
|
runs-on: ubuntu-latest-8-cores
|
2019-11-13 15:49:22 -05:00
|
|
|
|
|
|
|
steps:
|
2022-06-17 13:43:42 +01:00
|
|
|
- uses: actions/checkout@v3
|
2023-09-22 12:55:49 -04:00
|
|
|
with:
|
|
|
|
submodules: true
|
2020-05-01 15:20:35 -03:00
|
|
|
|
2023-06-20 14:49:00 -04:00
|
|
|
- name: set up JDK 17
|
2022-06-17 13:43:42 +01:00
|
|
|
uses: actions/setup-java@v3
|
2019-11-13 15:49:22 -05:00
|
|
|
with:
|
2022-06-17 13:43:42 +01:00
|
|
|
distribution: temurin
|
2023-06-20 14:49:00 -04:00
|
|
|
java-version: 17
|
2023-02-27 13:09:31 -06:00
|
|
|
cache: gradle
|
2020-05-01 15:20:35 -03:00
|
|
|
|
2020-01-15 15:40:01 -05:00
|
|
|
- name: Validate Gradle Wrapper
|
|
|
|
uses: gradle/wrapper-validation-action@v1
|
2020-05-01 15:20:35 -03:00
|
|
|
|
2019-11-13 15:49:22 -05:00
|
|
|
- name: Build with Gradle
|
2024-02-28 10:21:13 -05:00
|
|
|
run: ./gradlew qa
|
2021-02-24 15:07:56 -05:00
|
|
|
|
|
|
|
- name: Archive reports for failed build
|
|
|
|
if: ${{ failure() }}
|
2024-11-14 11:01:43 -05:00
|
|
|
uses: actions/upload-artifact@v4
|
2021-02-24 15:07:56 -05:00
|
|
|
with:
|
|
|
|
name: reports
|
|
|
|
path: '*/build/reports'
|