Only run Compound tests when files are changed in Compound. (#4611)

* Only run Compound tests when files are changed in Compound.

* Fix warnings about missing spacing.

* Fix warnings about inner type shadowing.
This commit is contained in:
Doug
2025-10-10 14:30:51 +01:00
committed by GitHub
parent 3081bd2d0b
commit f2a24853b4
7 changed files with 16 additions and 13 deletions

View File

@@ -6,8 +6,10 @@ name: Compound
on:
push:
branches: [ develop ]
paths: [ 'compound-ios/**' ]
pull_request:
paths: [ 'compound-ios/**' ]
jobs:
tests:
@@ -15,8 +17,9 @@ jobs:
runs-on: macos-15
concurrency:
# Only allow a single run of this workflow on each branch, automatically cancelling older runs.
group: ${{ format('compound-tests-{0}', github.ref) }}
# When running on develop, use the sha to allow all runs of this workflow to run concurrently.
# Otherwise only allow a single run of this workflow on each branch, automatically cancelling older runs.
group: ${{ github.ref == 'refs/heads/develop' && format('compound-develop-{0}', github.sha) || format('compound-{0}', github.ref) }}
cancel-in-progress: true
steps: