Skip to content

CI build using GitHub Actions. #4

CI build using GitHub Actions.

CI build using GitHub Actions. #4

Workflow file for this run

# Sample workflow for building and deploying
name: ci-gha
on:
pull_request:
branches:
- main
push:
branches:
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Env Vars
#env:
jobs:
build:
strategy:
max-parallel: 2
matrix:
it: [it1, it2, it3, it4, it5, it6, it7, it8, it9]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 8
# - uses: nttld/setup-ndk@v1
# with:
# ndk-version: r28-beta1
# link-to-sdk: true
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build with Gradle
# run: ./gradlew build
# run: ./gradlew test --no-daemon --debug --max-workers 2
run: ./gradlew test --no-daemon --info ${{ matrix.it }}
code_quality:
name: Code Quality
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: Sonatype Lifecycle Evaluation
id: evaluate
uses: sonatype/actions/[email protected]
with:
iq-server-url: ${{ vars.SONATYPE_PLATFORM_URL }}
username: ${{ secrets.SONATYPE_LIFECYCLE_USERNAME }}
password: ${{ secrets.SONATYPE_LIFECYCLE_PASSWORD }}
application-id: 'scan-gradle-plugin'
scan-targets: '.'