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:
|
jobs:
|
||||||
ci:
|
ci:
|
||||||
name: ci
|
name: ci
|
||||||
runs-on: macos-15
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout caller repository
|
- name: Checkout caller repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
@ -57,7 +57,7 @@ jobs:
|
||||||
if [ -z "$lint" ]; then
|
if [ -z "$lint" ]; then
|
||||||
case "$repo_type" in
|
case "$repo_type" in
|
||||||
ios)
|
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)
|
node)
|
||||||
lint="npm run lint --if-present"
|
lint="npm run lint --if-present"
|
||||||
|
|
@ -74,7 +74,7 @@ jobs:
|
||||||
if [ -z "$build" ]; then
|
if [ -z "$build" ]; then
|
||||||
case "$repo_type" in
|
case "$repo_type" in
|
||||||
ios)
|
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)
|
node)
|
||||||
build="npm run build --if-present"
|
build="npm run build --if-present"
|
||||||
|
|
@ -91,7 +91,7 @@ jobs:
|
||||||
if [ -z "$test" ]; then
|
if [ -z "$test" ]; then
|
||||||
case "$repo_type" in
|
case "$repo_type" in
|
||||||
ios)
|
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)
|
node)
|
||||||
test="npm test --if-present"
|
test="npm test --if-present"
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ Use from another repository:
|
||||||
```yaml
|
```yaml
|
||||||
jobs:
|
jobs:
|
||||||
use-vanity-dev-engine:
|
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:
|
with:
|
||||||
repo_type: ios
|
repo_type: ios
|
||||||
xcode_project: CamperLogBook.xcodeproj
|
xcode_project: CamperLogBook.xcodeproj
|
||||||
|
|
@ -34,3 +34,5 @@ jobs:
|
||||||
## Consumer toggle
|
## Consumer toggle
|
||||||
|
|
||||||
Set repository variable `USE_VANITY_DEV_ENGINE=true` in consumer repos to activate central execution.
|
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