]> granicus.if.org Git - icu/commitdiff
ICU-12811 Make CI jobs for Maven run serially to avoid CI cache race condition
authorElango Cheran <elango@unicode.org>
Fri, 16 Dec 2022 23:37:04 +0000 (15:37 -0800)
committerElango Cheran <elango@unicode.org>
Sat, 17 Dec 2022 17:59:35 +0000 (12:59 -0500)
.github/workflows/icu_ci.yml

index 712b1341c9173564f93c6374dda8f873c0113e33..b5871b7b5c95e4049d285239521c8c7c17c4b5ef 100644 (file)
@@ -63,6 +63,10 @@ jobs:
   java8-icu4j-test-maven:
     name: Run unit tests with Maven using JDK 8
     runs-on: ubuntu-latest
+    # Make this unit test target job depend on a later phase target job to prevent race condition when
+    # trying to persist the Maven cache to the Github cache, knowing that artifacts needed for
+    # the later phase `verify` are a superset of the artifacts needed for the earlier phase `test`.
+    needs: java8-icu4j-verify-maven
     steps:
       - name: Checkout and setup
         uses: actions/checkout@v2