-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (63 loc) · 2.42 KB
/
tests.yml
File metadata and controls
74 lines (63 loc) · 2.42 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: tests
on:
pull_request:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
unit:
runs-on: macos-latest
timeout-minutes: 8
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache Swift build
uses: actions/cache@v4
with:
path: hooks/claude-notify/.build
key: ${{ runner.os }}-swift-unit-${{ hashFiles('hooks/claude-notify/Package.swift', 'hooks/claude-notify/Sources/**', 'hooks/claude-notify/Tests/**', 'hooks/claude-notify/Makefile', 'hooks/claude-notify/Tests/shell/**', 'Makefile', 'hooks/claude-notify/notify.sh') }}
restore-keys: |
${{ runner.os }}-swift-unit-
${{ runner.os }}-swift-
- name: Run unit tests (includes docstring gate)
run: make test-unit
integration:
runs-on: macos-latest
timeout-minutes: 8
needs: unit
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache Swift build
uses: actions/cache@v4
with:
path: hooks/claude-notify/.build
key: ${{ runner.os }}-swift-integration-${{ hashFiles('hooks/claude-notify/Package.swift', 'hooks/claude-notify/Sources/**', 'hooks/claude-notify/Tests/**', 'hooks/claude-notify/Makefile', 'hooks/claude-notify/Tests/shell/**', 'Makefile', 'hooks/claude-notify/notify.sh') }}
restore-keys: |
${{ runner.os }}-swift-integration-
${{ runner.os }}-swift-unit-
${{ runner.os }}-swift-
- name: Run integration tests
run: make test-integration
e2e-shell:
runs-on: macos-latest
timeout-minutes: 8
needs: integration
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache Swift build
uses: actions/cache@v4
with:
path: hooks/claude-notify/.build
key: ${{ runner.os }}-swift-e2e-${{ hashFiles('hooks/claude-notify/Package.swift', 'hooks/claude-notify/Sources/**', 'hooks/claude-notify/Tests/**', 'hooks/claude-notify/Makefile', 'hooks/claude-notify/Tests/shell/**', 'Makefile', 'hooks/claude-notify/notify.sh') }}
restore-keys: |
${{ runner.os }}-swift-e2e-
${{ runner.os }}-swift-integration-
${{ runner.os }}-swift-unit-
${{ runner.os }}-swift-
- name: Run shell e2e tests
run: make test-e2e