-
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 920 Bytes
/
test.yml
File metadata and controls
44 lines (37 loc) · 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Tests
on:
pull_request: {}
concurrency:
group: running-tests-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
changes:
runs-on: ubuntu-latest
name: Check for specific changes
outputs:
xcode: ${{ steps.xcode.outputs.matches }}
steps:
- uses: CodeReaper/find-diff-action@v3
name: Changes requiring xcodebuild
id: xcode
with:
paths: Powercast/ Powercast.xcodeproj/ .github/workflows/xcodebuild.yml
build:
needs: changes
if: needs.changes.outputs.xcode == 'true'
uses: ./.github/workflows/xcodebuild.yml
make:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: make all
shell: bash
tests-succeeded:
name: Tests Succeeded
needs:
- build
- make
runs-on: ubuntu-latest
steps:
- name: All clear
run: exit 0