aboutsummaryrefslogtreecommitdiff
path: root/.github
AgeCommit message (Collapse)Author
2021-05-12Revert "Merge commit 'upstream/dagger-2.35.1^'"Aurimas Liutikas
This reverts commit 399f4f61132f363e9479e59c550a7bcf005922d8. Reason for revert: b/187908823 Change-Id: I81f7cd3672e65ce1f7e1fa846b6c3e2f87147a26
2021-03-17Add more logging of test results when running gradle tests.Brad Corso
This CL adds logging that should make it easier to see which tests have run and view the test results. Example Action run: https://github.com/google/dagger/actions/runs/603847514 * Uploads test / androidTest build reports as downloadable artifacts * Adds individual test results in console using tasks.withType(Test) * Adds individual androidTest results in console using LogCat * Adds --keep_going (Bazel) and --continue (Gradle) to make iterating on multiple test failures faster. RELNOTES=N/A PiperOrigin-RevId: 363511840
2021-03-15Improve GitHub Actions hygiene for DaggerBrad Corso
See https://github.com/google/go-github/pull/1821 This CL makes a few changes to reduce the load of GitHub Actions from Dagger: * Restricts GitHub Actions to only the master or gh-pages branches (Note: For PR, this filter applies to the branch to merge into, not the branch itself). * Cancels previous GitHub Action runs for the same PR branch. * Removes excessive API levels for emulator tests. RELNOTES=N/A PiperOrigin-RevId: 363054339
2021-02-25Fix the java and bazel version when publishing the latest snapshots.Brad Corso
Publishing the latest snapshots is currently failing since ubuntu-latest was updated to Java 11, which doesn't like empty root packages when using javadoc_library: https://github.com/google/dagger/runs/1982251838?check_suite_focus=true RELNOTES=N/A PiperOrigin-RevId: 359639855
2021-02-25Add job to GitHub Actions to validate the Dagger version.Brad Corso
RELNOTES=N/A PiperOrigin-RevId: 359564145
2021-02-17Fix Java and Bazel version when building with Bazel in GitHub Actions.Brad Corso
This CL fixes the version of Java to JDK8 and Bazel to 3.7.1 For Java, ubuntu-latest will soon be switching from Java 8 to Java 11 as the default (https://github.com/actions/virtual-environments/issues/1816), and our Bazel builds currently don't work with Java 11 since compile_testing depends on @local_jdk//:lib/tools.jar which doesn't exist in Java 11. https://github.com/google/bazel-common/blob/master/third_party/java/compile_testing/BUILD#L32 For Bazel, ubuntu-latest currently uses Bazel 4.0.0 by default, which fails with Robolectric tests @Config annotation: ``` error: missing required annotation argument: <clinit> @Config ``` RELNOTES=N/A PiperOrigin-RevId: 358062883
2021-01-29Add timeout to emulator tests since these are likely to hang.Brad Corso
RELNOTES=N/A PiperOrigin-RevId: 354637747
2021-01-29Update Hilt Plugin to AGP beta04 and use renamed APIs when configuring the ↵Daniel Santiago
ASM transform. Fixes https://github.com/google/dagger/issues/2337 RELNOTES=Fix an incompatibility issue between the Hilt Gradle Plugin and AGP 4.2.0-beta04. Note that this fix makes it so that earlier versions of AGP 4.2.0 are incompatible with Hilt's Plugin. PiperOrigin-RevId: 354610640
2021-01-29Add artifact-android-emulator-tests to GitHub Actions workflow.Brad Corso
This CL switches from our own custom emulator setup logic to use https://github.com/marketplace/actions/android-emulator-runner. Workflow results: https://github.com/google/dagger/actions/runs/519636387 Given that none of the emulator tests failed without even allowing for a retry, suggests that this approach is already more reliable than what we were using before. RELNOTES=N/A PiperOrigin-RevId: 354580258
2021-01-29Rename workflow jobs to better match their function.Brad Corso
RELNOTES=N/A PiperOrigin-RevId: 354544595
2021-01-28Add publishing docs to Github Pages step into the Github WorkflowDaniel Santiago
RELNOTES=N/A PiperOrigin-RevId: 354378373
2021-01-28Add Bazel and Gradle files cache to Github WorkflowDaniel Santiago
RELNOTES=N/A PiperOrigin-RevId: 354339028
2021-01-28Add latest snapshot publishing job to Github WorkflowDaniel Santiago
RELNOTES=N/A PiperOrigin-RevId: 354327132
2021-01-27Exclude Dagger local snapshots from Maven local repo cache.Daniel Santiago
This prevents the LOCAL-SNAPSHOT artifacts from being cached with the rest of the `.m2/repository` directory which in turn would cause other jobs to fail due to not using the local snapshots built for the workflow. Instead use the upload and download actions to share the artifacts between jobs. RELNOTES=N/A PiperOrigin-RevId: 354200073
2021-01-27In the Github Workflow add the matrix AGP value in the job name.Daniel Santiago
RELNOTES=n/a PiperOrigin-RevId: 354137828
2021-01-27Migrate to use Github Workflows from Travis-CiDaniel Santiago
RELNOTES=N/A PiperOrigin-RevId: 354106317