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:
7
.github/workflows/compound-ios.yml
vendored
7
.github/workflows/compound-ios.yml
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user