Skip to content

Add caching + fix buildCode #37

Add caching + fix buildCode

Add caching + fix buildCode #37

Workflow file for this run

name: Execute checks
on:
pull_request:
push:
branches: master
jobs:
test:
name: Run Checks
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: ./.github/actions/checkout_submodules
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
cache: 'gradle'
# TODO: Without this step, the Gradle check task fails with the following error:
# Execution failed for task ':common:verifyDebugDatabaseMigration'.
# > A failure occurred while executing app.cash.sqldelight.gradle.VerifyMigrationTask$VerifyMigrationAction
# > No suitable driver found for jdbc:sqlite:
# - name: Run verifyDebugDatabase
# run: ./gradlew verifyDebugDatabaseMigration --no-daemon
- name: Run check
run: ./gradlew check --no-daemon
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}