diff --git a/.github/workflows/Integration.yml b/.github/workflows/Integration.yml index 9e965ce92..d9bff5246 100644 --- a/.github/workflows/Integration.yml +++ b/.github/workflows/Integration.yml @@ -2,7 +2,7 @@ name: Integration on: push: branches: - - dev + - main tags: "*" pull_request: workflow_dispatch: @@ -32,8 +32,8 @@ jobs: arch: - x64 package: - - {user: PalmStudio, repo: XPalm.jl, branch: dev} - - {user: VEZY, repo: PlantBioPhysics.jl, branch: dev} + - {user: PalmStudio, repo: XPalm.jl, branch: main, default: main} + - {user: VEZY, repo: PlantBioPhysics.jl, branch: master, default: master} steps: - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@v2 @@ -64,6 +64,11 @@ jobs: @info "Testing with an incompatible downstream release as a breaking change was introduced. Expected failure." exception=err exit(0) # Exit immediately, as a success end + - name: Only succeed if the checks pass on the dependencies' main/master branches + if: ${{ matrix.package.branch != matrix.package.default }} + run: | + echo "This action requires the downstream dependencies' branches to be set to their main/master to succeed. Please switch them back and ensure tests pass before merging" + exit 1 - uses: julia-actions/julia-processcoverage@v1 - uses: codecov/codecov-action@v5 with: