Skip to content

Commit

Permalink
Workflows check for file changes
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbs authored Feb 23, 2024
1 parent 59c03c4 commit c1b2c97
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
pull_request:
branches:
- main
paths:
- '.github/workflows/build_and_test.yml'
- 'Sources/**'
- '!Sources/Runestone/Documentation.docc/**'
- 'Tests/**'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
Expand All @@ -31,13 +26,24 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
- uses: dorny/paths-filter@v3
id: changes
with:
filters: |
src:
- '.github/workflows/build_and_test.yml'
- 'Sources/**'
- '!Sources/Runestone/Documentation.docc/**'
- 'Tests/**'
- name: Build
if: steps.changes.outputs.src == 'true'
run: |
xcodebuild build-for-testing\
-scheme Runestone\
-sdk iphonesimulator\
-destination "platform=iOS Simulator,name=${{ matrix.destination }},OS=latest"
- name: Test
if: steps.changes.outputs.src == 'true'
run: |
xcodebuild test-without-building\
-scheme Runestone\
Expand Down

0 comments on commit c1b2c97

Please sign in to comment.