Skip to content

[NSDK-240][NSDK-241][NSDK-242] Fix InPage Issues #157

[NSDK-240][NSDK-241][NSDK-242] Fix InPage Issues

[NSDK-240][NSDK-241][NSDK-242] Fix InPage Issues #157

name: Pull request CI checks
on: [pull_request]
jobs:
build:
name: Gradle build
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
lint:
name: Lint checks
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: gradle
- name: Ktlint
run: ./gradlew ktlint
- name: Lint
run: ./gradlew lint
test:
name: Unit tests
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: gradle
- name: Unit tests
run: ./gradlew testDebugUnitTest
- uses: actions/upload-artifact@v4
if: failure()
with:
name: unit-test-report
path: ./**/build/reports/tests/testDebugUnitTest/