Stabilize CI runner defaults and publish v1.5
This commit is contained in:
parent
e96501e937
commit
431a1d2543
2 changed files with 7 additions and 5 deletions
8
.github/workflows/repo-pipeline.yml
vendored
8
.github/workflows/repo-pipeline.yml
vendored
|
|
@ -37,7 +37,7 @@ on:
|
|||
jobs:
|
||||
ci:
|
||||
name: ci
|
||||
runs-on: macos-15
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout caller repository
|
||||
uses: actions/checkout@v4
|
||||
|
|
@ -57,7 +57,7 @@ jobs:
|
|||
if [ -z "$lint" ]; then
|
||||
case "$repo_type" in
|
||||
ios)
|
||||
lint="if which swiftlint > /dev/null; then swiftlint --strict; else brew install swiftlint && swiftlint --strict; fi"
|
||||
lint="echo 'No default ios lint command on ubuntu runner. Set lint_command override if needed.'"
|
||||
;;
|
||||
node)
|
||||
lint="npm run lint --if-present"
|
||||
|
|
@ -74,7 +74,7 @@ jobs:
|
|||
if [ -z "$build" ]; then
|
||||
case "$repo_type" in
|
||||
ios)
|
||||
build="xcodebuild build -project $xcode_project -scheme $xcode_scheme -destination 'platform=iOS Simulator,name=iPhone 16,OS=latest' CODE_SIGNING_ALLOWED=NO"
|
||||
build="echo 'No default ios build command on ubuntu runner. Use Xcode Cloud or set build_command override.'"
|
||||
;;
|
||||
node)
|
||||
build="npm run build --if-present"
|
||||
|
|
@ -91,7 +91,7 @@ jobs:
|
|||
if [ -z "$test" ]; then
|
||||
case "$repo_type" in
|
||||
ios)
|
||||
test="xcodebuild test -project $xcode_project -scheme $xcode_scheme -destination 'platform=iOS Simulator,name=iPhone 16,OS=latest' CODE_SIGNING_ALLOWED=NO"
|
||||
test="echo 'No default ios test command on ubuntu runner. Use Xcode Cloud or set test_command override.'"
|
||||
;;
|
||||
node)
|
||||
test="npm test --if-present"
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ Use from another repository:
|
|||
```yaml
|
||||
jobs:
|
||||
use-vanity-dev-engine:
|
||||
uses: OliverGiertz/vanity-dev-engine/.github/workflows/repo-pipeline.yml@v1.4
|
||||
uses: OliverGiertz/vanity-dev-engine/.github/workflows/repo-pipeline.yml@v1.5
|
||||
with:
|
||||
repo_type: ios
|
||||
xcode_project: CamperLogBook.xcodeproj
|
||||
|
|
@ -34,3 +34,5 @@ jobs:
|
|||
## Consumer toggle
|
||||
|
||||
Set repository variable `USE_VANITY_DEV_ENGINE=true` in consumer repos to activate central execution.
|
||||
|
||||
Note: The default CI runner is `ubuntu-latest`. For iOS repositories, provide explicit `build_command` and `test_command` overrides (or use Xcode Cloud for build/test).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue