Skip to content

Merge pull request #23 from KvColorPalette/feature/color-blending #12

Merge pull request #23 from KvColorPalette/feature/color-blending

Merge pull request #23 from KvColorPalette/feature/color-blending #12

Workflow file for this run

name: KvColorPalette-Android CI
on:
# Runs on pushes targeting the default branch
push:
branches: [ "main" ]
# Runs on create pull-request to targeting the default branch
pull_request:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21
- name: Cache Gradle files
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build project
run: ./gradlew assembleDebug
- name: Run unit tests
run: ./gradlew testDebugUnitTest