Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ permissions:
pull-requests: write
pages: write
id-token: write
actions: write # cleanup old caches

on:
# Runs every day at midnight UTC
Expand All @@ -37,4 +38,4 @@ on:

jobs:
maintenance:
uses: eclipse-score/cicd-workflows/.github/workflows/daily.yml@8d80e8df150cae21d53cbc8031d0f970648f7a67 # v0.0.3
uses: eclipse-score/cicd-workflows/.github/workflows/daily.yml@cache
28 changes: 23 additions & 5 deletions .github/workflows/downstream_compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,26 @@ name: Downstream Compatibility
on:
workflow_call:
pull_request:
# Parallel to review
types: [opened, reopened, synchronize]
merge_group:
# Post-review, pre-merge
types: [checks_requested]
push:
# Update cache
branches:
- main
Comment thread
AlexanderLanin marked this conversation as resolved.
schedule:
# Update cache
# Runs every day at midnight UTC
- cron: '0 0 * * *'
Comment thread
AlexanderLanin marked this conversation as resolved.

permissions:
contents: read
actions: write # cleanup old caches
Comment thread
AlexanderLanin marked this conversation as resolved.

jobs:
test:
downstream-test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down Expand Up @@ -57,13 +71,17 @@ jobs:
packages: graphviz
cache: false

- name: Checkout PR
uses: actions/checkout@v7

- name: Setup Bazel with shared caching
uses: eclipse-score/cicd-actions/setup-bazel-cache@cache
with:
disk-cache-key: ${{ github.job }}

- name: Checkout PR
uses: actions/checkout@v7
# Matrix jobs need separate disk-cache archives because GitHub Actions
# cannot merge archives written concurrently under one cache key.
disk-cache-key: ${{ github.job }}-${{ matrix.consumer }}
# Keep the shared repository cache consistent by assigning one writer.
repository-cache-save: ${{ matrix.consumer == 'score and remote' && 'auto' || 'false' }}

- name: Prepare Python
run: bazel run //:ide_support
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,22 @@ on:
release:
types: [published]

permissions:
contents: read

jobs:
common:
uses: eclipse-score/cicd-workflows/.github/workflows/on-pr.yml@88cb460c47cb49efeb25cd7b73c8945dd1c5bce2 # on-pr/v0.0.0
permissions:
contents: read
uses: eclipse-score/cicd-workflows/.github/workflows/on-pr.yml@cache

tests:
uses: ./.github/workflows/_test.yml
permissions:
contents: read
actions: write # cleanup old caches
Comment thread
AlexanderLanin marked this conversation as resolved.

docs-build:
needs: [tests]
uses: eclipse-score/cicd-workflows/.github/workflows/docs.yml@37eaadadfefc263d94a858d25665735659e916fa
permissions:
contents: read
uses: eclipse-score/cicd-workflows/.github/workflows/docs.yml@cache
with:
bazel-target: "//:docs"
tests-report-artifact: tests-report
Loading