Repository navigation
64 lines (60 loc) · 1.76 KB
/
Copy pathbuild.yml
File metadata and controls
64 lines (60 loc) · 1.76 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
name: CI
on:
pull_request:
push:
branches:
- main
tags:
- "v*"
schedule:
- cron: "17 3 * * *"
workflow_dispatch:
jobs:
build:
runs-on: macos-26
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Show Xcode version
run: xcodebuild -version
- name: Install XcodeGen
run: |
brew list xcodegen >/dev/null 2>&1 || HOMEBREW_NO_AUTO_UPDATE=1 brew install xcodegen
xcodegen --version
- name: Run unit tests and clean build
run: Packages/TinyKit/scripts/ci/run_unit_and_build.sh TinyTask "$PWD"
ui_smoke:
if: github.event_name != 'pull_request'
needs: build
runs-on: macos-26
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Show Xcode version
run: xcodebuild -version
- name: Install XcodeGen
run: |
brew list xcodegen >/dev/null 2>&1 || HOMEBREW_NO_AUTO_UPDATE=1 brew install xcodegen
xcodegen --version
- name: Run UI smoke test
run: Packages/TinyKit/scripts/ci/run_ui_smoke.sh TinyTask UITests/Fixtures/sample.todo "$PWD"
release_validation:
if: startsWith(github.ref, 'refs/tags/v')
needs:
- build
- ui_smoke
runs-on: macos-26
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Show Xcode version
run: xcodebuild -version
- name: Install XcodeGen
run: |
brew list xcodegen >/dev/null 2>&1 || HOMEBREW_NO_AUTO_UPDATE=1 brew install xcodegen
xcodegen --version
- name: Validate release pipeline
run: Packages/TinyKit/scripts/ci/run_release_validation.sh TinyTask "${GITHUB_REF_NAME}" "$PWD"