Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/test-strategy-matrix.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"include": [
{
"os": "ubuntu-latest",
"name": "androidRunner",
"arch": "x64",
"enableKvm": true,
"testArgs": "pixel2api35AndroidDeviceTest"
},
{
"os": "macos-latest",
"name": "iosRunner",
"arch": "arm64",
"testArgs": ":shared:iosSimulatorArm64Test"
}
]
}
68 changes: 68 additions & 0 deletions .github/workflows/build-everything.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Build Everything (All OS/Arch)

on:
#For caching
push:
branches:
- main
- development
pull_request:
workflow_dispatch:
inputs:
kotlin-version:
description: "Override Kotlin version?"
required: false
default: ""
type: string
testballoon-version:
description: "Override TestBalloon version (full version string)?"
required: false
default: ""
type: string

jobs:
build-android:
runs-on: ubuntu-latest
steps:
- name: Common setup
uses: a-sit-plus/internal-workflows/.github/actions/common-setup@feature/modularTests
with:
override-cache: ${{ github.ref_name == 'development' || github.ref_name == 'main' }}

- name: Build apk
run: ./gradlew :androidApp:assemble
env:
ANDROID_CERT_PASSWORD: ${{ secrets.ANDROID_CERT_PASSWORD }}
CI: true

build-ios:
runs-on: macos-latest
steps:
- name: Common setup
uses: a-sit-plus/internal-workflows/.github/actions/common-setup@feature/modularTests
with:
xcode-version: '16.4'
override-cache: ${{ github.ref_name == 'development' || github.ref_name == 'main' }}

- name: Prepare files from secrets
run: |
echo "${{ secrets.APPLE_CERT_CONTENT }}" > iosApp/cert.b64
base64 -d -i iosApp/cert.b64 > iosApp/cert.p12
- name: Build iOS App
run: fastlane build
working-directory: iosApp
env:
FASTLANE_OPT_OUT_USAGE: true
FASTLANE_XCODE_LIST_TIMEOUT: 120
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_API_ISSUER_ID: ${{ secrets.APPLE_API_ISSUER_ID }}
APPLE_API_KEY_CONTENT: ${{ secrets.APPLE_API_KEY_CONTENT }}
APPLE_API_KEY_ID: ${{ secrets.APPLE_API_KEY_ID }}
APPLE_CERT_PASSWORD: ${{ secrets.APPLE_CERT_PASSWORD }}
CI: true
- name: Upload logs (Build iOS App)
uses: actions/upload-artifact@v4
if: always()
with:
name: xcode.log
path: "/Users/runner/Library/Logs/gym/Valera-iosApp.log"
49 changes: 0 additions & 49 deletions .github/workflows/test-android.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/test-everything.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Test Everything (All OS/Arch)

on:
#For caching
push:
branches:
- main
- development
pull_request:
workflow_dispatch:
inputs:
kotlin-version:
description: "Override Kotlin version?"
required: false
default: ""
type: string
testballoon-version:
description: "Override TestBalloon version (full version string)?"
required: false
default: ""
type: string

jobs:
test-everything:
uses: a-sit-plus/internal-workflows/.github/workflows/test-everything.yml@feature/modularTests
with:
override-cache: ${{ github.ref_name == 'development' || github.ref_name == 'main' }}
matrix-file-name: ".github/test-strategy-matrix.json"
kotlin-version: ${{ inputs.kotlin-version }}
testballoon-version: ${{ inputs.testballoon-version }}
62 changes: 0 additions & 62 deletions .github/workflows/test-ios.yml

This file was deleted.

Loading