Skip to content

Commit

Permalink
actions: only run single vehicle check for vehicle directory change
Browse files Browse the repository at this point in the history
  • Loading branch information
IamPete1 authored and tridge committed Oct 24, 2022
1 parent 35b138a commit 7f4c12d
Show file tree
Hide file tree
Showing 7 changed files with 138 additions and 28 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/test_replay.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,27 @@
name: test replay

on: [push, pull_request, workflow_dispatch]
# paths:
# - "*"
# - "!README.md" <-- don't rebuild on doc change
on:
push:
paths-ignore: # ignore vehicle only changes
- 'AntennaTracker/**'
- 'ArduPlane/**'
- 'ArduSub/**'
- 'Rover/**'
- 'Blimp/**'
- 'ArduCopter/**'

pull_request:
paths-ignore: # ignore vehicle only changes
- 'AntennaTracker/**'
- 'ArduPlane/**'
- 'ArduSub/**'
- 'Rover/**'
- 'Blimp/**'
- 'ArduCopter/**'

workflow_dispatch:


concurrency:
group: ci-${{github.workflow}}-${{ github.ref }}
cancel-in-progress: true
Expand Down
23 changes: 19 additions & 4 deletions .github/workflows/test_sitl_copter.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
name: test copter

on: [push, pull_request, workflow_dispatch]
# paths:
# - "*"
# - "!README.md" <-- don't rebuild on doc change
on:
push:
paths-ignore: # ignore vehicle only changes not for copter
- 'AntennaTracker/**'
- 'ArduPlane/**'
- 'ArduSub/**'
- 'Rover/**'
- 'Blimp/**'

pull_request:
paths-ignore: # ignore vehicle only changes not for copter
- 'AntennaTracker/**'
- 'ArduPlane/**'
- 'ArduSub/**'
- 'Rover/**'
- 'Blimp/**'

workflow_dispatch:

concurrency:
group: ci-${{github.workflow}}-${{ github.ref }}
cancel-in-progress: true
Expand Down
25 changes: 21 additions & 4 deletions .github/workflows/test_sitl_periph.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,26 @@
name: test ap_periph

on: [push, pull_request, workflow_dispatch]
# paths:
# - "*"
# - "!README.md" <-- don't rebuild on doc change
on:
push:
paths-ignore: # ignore vehicle only changes
- 'AntennaTracker/**'
- 'ArduPlane/**'
- 'ArduSub/**'
- 'Rover/**'
- 'Blimp/**'
- 'ArduCopter/**'

pull_request:
paths-ignore: # ignore vehicle only changes
- 'AntennaTracker/**'
- 'ArduPlane/**'
- 'ArduSub/**'
- 'Rover/**'
- 'Blimp/**'
- 'ArduCopter/**'

workflow_dispatch:

concurrency:
group: ci-${{github.workflow}}-${{ github.ref }}
cancel-in-progress: true
Expand Down
23 changes: 19 additions & 4 deletions .github/workflows/test_sitl_plane.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
name: test plane

on: [push, pull_request, workflow_dispatch]
# paths:
# - "*"
# - "!README.md" <-- don't rebuild on doc change
on:
push:
paths-ignore: # ignore vehicle only changes not for plane
- 'AntennaTracker/**'
- 'ArduSub/**'
- 'Rover/**'
- 'Blimp/**'
- 'ArduCopter/**'

pull_request:
paths-ignore: # ignore vehicle only changes not for plane
- 'AntennaTracker/**'
- 'ArduSub/**'
- 'Rover/**'
- 'Blimp/**'
- 'ArduCopter/**'

workflow_dispatch:

concurrency:
group: ci-${{github.workflow}}-${{ github.ref }}
cancel-in-progress: true
Expand Down
23 changes: 19 additions & 4 deletions .github/workflows/test_sitl_rover.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
name: test rover

on: [push, pull_request, workflow_dispatch]
# paths:
# - "*"
# - "!README.md" <-- don't rebuild on doc change
on:
push:
paths-ignore: # ignore vehicle only changes not for rover
- 'AntennaTracker/**'
- 'ArduPlane/**'
- 'ArduSub/**'
- 'Blimp/**'
- 'ArduCopter/**'

pull_request:
paths-ignore: # ignore vehicle only changes not for rover
- 'AntennaTracker/**'
- 'ArduPlane/**'
- 'ArduSub/**'
- 'Blimp/**'
- 'ArduCopter/**'

workflow_dispatch:

concurrency:
group: ci-${{github.workflow}}-${{ github.ref }}
cancel-in-progress: true
Expand Down
23 changes: 19 additions & 4 deletions .github/workflows/test_sitl_sub.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
name: test sub

on: [push, pull_request, workflow_dispatch]
# paths:
# - "*"
# - "!README.md" <-- don't rebuild on doc change
on:
push:
paths-ignore: # ignore vehicle only changes not for sub
- 'AntennaTracker/**'
- 'ArduPlane/**'
- 'Rover/**'
- 'Blimp/**'
- 'ArduCopter/**'

pull_request:
paths-ignore: # ignore vehicle only changes not for sub
- 'AntennaTracker/**'
- 'ArduPlane/**'
- 'Rover/**'
- 'Blimp/**'
- 'ArduCopter/**'

workflow_dispatch:

concurrency:
group: ci-${{github.workflow}}-${{ github.ref }}
cancel-in-progress: true
Expand Down
23 changes: 19 additions & 4 deletions .github/workflows/test_sitl_tracker.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
name: test tracker

on: [push, pull_request, workflow_dispatch]
# paths:
# - "*"
# - "!README.md" <-- don't rebuild on doc change
on:
push:
paths-ignore: # ignore vehicle only changes
- 'ArduPlane/**'
- 'ArduSub/**'
- 'Rover/**'
- 'Blimp/**'
- 'ArduCopter/**'

pull_request:
paths-ignore: # ignore vehicle only changes
- 'ArduPlane/**'
- 'ArduSub/**'
- 'Rover/**'
- 'Blimp/**'
- 'ArduCopter/**'

workflow_dispatch:

concurrency:
group: ci-${{github.workflow}}-${{ github.ref }}
cancel-in-progress: true
Expand Down

0 comments on commit 7f4c12d

Please sign in to comment.