Skip to content

Update dependencies #134

Update dependencies

Update dependencies #134

Workflow file for this run

name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
JDK_JAVA_DISTRIBUTION: 'temurin'
JDK_JAVA_VERSION: '17'
jobs:
static-analysis:
name: Static Analysis
runs-on: [ ubuntu-latest ]
if: ${{ !contains(github.event.head_commit.message, '[ci skip]') }}
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: ${{ env.JDK_JAVA_DISTRIBUTION }}
java-version: ${{ env.JDK_JAVA_VERSION }}
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4
- name: Run Static Analysis Tools
run: ./gradlew lint detekt ktlintCheck --continue
test:
name: Unit Tests
runs-on: [ubuntu-latest]
if: ${{ !contains(github.event.head_commit.message, '[ci skip]') }}
continue-on-error: true
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: ${{ env.JDK_JAVA_DISTRIBUTION }}
java-version: ${{ env.JDK_JAVA_VERSION }}
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4
- name: Test Application
run: ./gradlew test
assemble:
name: App Assembling
runs-on: [ubuntu-latest]
if: ${{ !contains(github.event.head_commit.message, '[ci skip]') }}
continue-on-error: true
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: ${{ env.JDK_JAVA_DISTRIBUTION }}
java-version: ${{ env.JDK_JAVA_VERSION }}
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build Debug APK
run: ./gradlew assembleDebug