[ci] Move CI to native Mac mini runner, drop Bitrise

- Remove bitrise.yml (no longer used, replaced by Gitea Actions on
  a native macos-build:host runner - Docker VM-based macos-ctl/
  macos-release runners are dead per earlier session)
- test.yml: push-triggered on any branch except develop/release/main,
  runs fastlane tests (coverage) instead of raw xcodebuild
- beta.yml: PR-to-develop triggered, builds + uploads to TestFlight;
  drops the dead wake/sleep-macos-vm jobs, uses the archive-API
  checkout workaround (see go-gitea/gitea#21819), points at the real
  ci-build.keychain-db instead of the old ci-signing.keychain-db name
- release.yml removed: release/main run nothing automated per the
  agreed branch flow, promotion is manual
- Fastfile: add a tests lane (coverage) so the workflow just calls
  fastlane, matching LC Wallet's convention
This commit is contained in:
2026-09-10 20:06:25 -03:00
parent 8db72d6a12
commit d698049fab
5 changed files with 35 additions and 325 deletions

View File

@@ -1,43 +1,23 @@
name: Test (feature branches)
name: Validation (test + coverage)
on:
pull_request:
branches:
- "feature/*"
push:
branches-ignore:
- develop
- release
- main
jobs:
wake-macos-vm:
runs-on: macos-ctl
steps:
- name: Start macOS VM container
run: docker start macos
test:
needs: wake-macos-vm
runs-on: macos-release
runs-on: macos-build
steps:
- name: Checkout
- name: Checkout repository (workaround - Gitea git-upload-pack bug, see go-gitea/gitea#21819)
run: |
export GIT_TERMINAL_PROMPT=0
export GIT_ASKPASS=/bin/false
export SSH_ASKPASS=/bin/false
REPO_URL="${{ gitea.server_url }}/${{ gitea.repository }}.git"
AUTH_URL="$(echo "$REPO_URL" | sed "s#https://#https://x-access-token:${{ gitea.token }}@#")"
git -c credential.helper= -c http.lowSpeedLimit=1000 -c http.lowSpeedTime=30 clone "$AUTH_URL" .
git checkout "${{ gitea.sha }}"
curl -sSfL -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-o /tmp/repo.tar.gz \
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/archive/${{ github.sha }}.tar.gz"
tar -xzf /tmp/repo.tar.gz --strip-components=1 -C "$GITHUB_WORKSPACE"
- name: Run unit tests
run: |
xcodebuild test \
-project PediFoods.xcodeproj \
-scheme "PediFoods" \
-destination "platform=iOS Simulator,name=iPhone 16,OS=latest"
sleep-macos-vm:
needs: test
if: always()
runs-on: macos-ctl
steps:
- name: Stop macOS VM container
run: docker stop macos
- name: Run tests with coverage
run: fastlane tests