/
githubmirror
/
icu
Обзор
Документация
Войти
/
githubmirror
/
icu
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
.github/workflows/cache_retain.yml
63 строки
3 KB
dependabot[bot]
ICU-23247 Bump the github-actions group with 8 updates
04 авг 2026, 00:52
04 авг 2026, 00:52
6f8b1e8
Код
Авторство
О чём код?
# Copyright (C) 2023 and later: Unicode, Inc. and others. # License & terms of use: http://www.unicode.org/copyright.html # # This workflow is designed to keep specific caches on the main # branch from getting evicted according to the Github Actions policy # (currently in 2023: 7 days) in cases where the cost to construct # the cache is high, especially in cases where there is flakiness # (ex: network loss / throttling when downloading artifacts) involved in # constructing the cache. # # Preventing a cache from eviction using this workflow requires that: # - the cache is not too big that it starves other caches # from using the shared cache quota for the repository # - the cache key is specific enough to avoid cache collisions, according # to good cache key design # - the cache key is not overly specific to cause unnecessary cache misses # (resulting in duplicate caches values, thereby wasting space), according # to good cache key design # - For more details, see: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows name: Retain Specific Caches on: schedule: # Because the Github Actions cache eviction policy is every 7 days, # this cron schedule is set to run every 6 days to ensure retention - cron: '0 12 */6 * *' env: SHARED_MVN_ARGS: '--show-version --no-transfer-progress' permissions: contents: read jobs: retain-maven-cache: name: Run all tests with Maven runs-on: ubuntu-24.04 # Updated in BRS # Only run this on the upstream repo. Otherwise, running in a personal fork will cause # Github to disable the personal fork copy of the workflow # (Github complains about running a scheduled workflow on a repo with > 60 days of inactivity) if: github.ref == 'refs/heads/main' && github.repository == 'unicode-org/unicodetools' steps: - name: Checkout and setup uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0 with: distribution: 'temurin' java-version: '11' - name: Restore read-only cache of local Maven repository uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 id: cache with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven- - name: Run Maven unit & integration tests run: | cd icu4j; mvn ${SHARED_MVN_ARGS} verify