Skip to content

Commit

Permalink
Merge pull request #27 from wealthfront/basic-ci
Browse files Browse the repository at this point in the history
Create runTests.yml
  • Loading branch information
cmathew authored Apr 20, 2023
2 parents 7e518f1 + 67f26db commit 159d8b6
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 11 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/runTests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle

name: Java CI with Gradle

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
with:
arguments: testDebugUnitTest
2 changes: 1 addition & 1 deletion buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ repositories {
}

dependencies {
implementation("com.android.tools.build:gradle:7.3.1")
implementation("com.android.tools.build:gradle:7.4.2")
implementation(kotlin("stdlib-jdk8"))
}
14 changes: 7 additions & 7 deletions buildSrc/src/main/kotlin/Dependencies.kt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import Version.androidTestExtVersion
import Version.appCompatVersion
import Version.constraintLayoutVersion
Expand All @@ -23,7 +22,8 @@ object Libs {
val kotlinterGradle = "org.jmailen.gradle:kotlinter-gradle:$kotlinterVersion"
val kotlinAllOpen = "org.jetbrains.kotlin:kotlin-allopen:$kotlinVersion"

val dependencyAnalyzer = "com.vanniktech:gradle-dependency-graph-generator-plugin:$dependencyAnalyzerVersion"
val dependencyAnalyzer =
"com.vanniktech:gradle-dependency-graph-generator-plugin:$dependencyAnalyzerVersion"

val kotlinStdLib = "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
val appCompat = "androidx.appcompat:appcompat:$appCompatVersion"
Expand Down Expand Up @@ -57,12 +57,12 @@ object Version {
val constraintLayoutVersion = "1.1.3"
val materialVersion = "1.1.0"
val truthVersion = "0.39"
val junitVersion = "4.13"
val robolectricVersion = "4.3.1"
val junitVersion = "4.13.2"
val robolectricVersion = "4.9.2"
val jsrVersion = "3.0.2"
val testSupportVersion="1.2.0"
val testSupportVersion = "1.4.0"
val mockitoVersion = "2.23.4"
val espressoVersion = "3.2.0"
val androidTestExtVersion = "1.1.1"
val espressoVersion = "3.5.1"
val androidTestExtVersion = "1.5.0"
val javaInject = "1"
}
6 changes: 3 additions & 3 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Fri Feb 10 15:32:06 PST 2023
#Wed Apr 19 21:17:25 PDT 2023
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit 159d8b6

Please sign in to comment.