Skip to content

Commit

Permalink
[ci] Run shared ios tests
Browse files Browse the repository at this point in the history
Co-authored-by: ivk <[email protected]>
  • Loading branch information
paw-hub and charlag committed Jul 26, 2024
1 parent 3ecfb78 commit 410a42d
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 10 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/swift-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
types: [ opened, synchronize, edited ]
paths:
- 'app-ios/**'
- '.github/workflows/swift-test.yml'
push:
branches:
- dev-*
Expand Down Expand Up @@ -42,11 +43,32 @@ jobs:
swift-version: ${{ env.swift-version }}
- name: Install Homebrew
uses: Homebrew/actions/setup-homebrew@d54a6744d5fcdff54b45a9659f3e17f769389952
- name: Install Code Quality Tools
run: brew install swiftlint swift-format
- name: Install Homebrew dependencies
run: |
brew install swiftlint swift-format xcodegen
brew upgrade rustup
- name: Versions
run: |
rustup --version
cargo --version
rustc --version
- name: Add rust target
run: rustup target add aarch64-apple-ios-sim
- name: Lint
working-directory: ./app-ios
run: ./lint.sh lint:check
- name: Format
working-directory: ./app-ios
run: ./lint.sh style:check
- name: Xcodegen sdk
working-directory: tuta-sdk/ios
run: xcodegen
# Tests do not run on arm64 yet because of OpenSSL
# see https://github.com/tutao/tutanota/issues/6603
# - name: Test
# working-directory: app-ios
# run: |
# mkdir -p ../build
# xcodegen
# fastlane test

4 changes: 4 additions & 0 deletions app-ios/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ platform :ios do
scheme: "tuta debug",
devices: ["iphone-15-ios-17-4"]
)
run_tests(
scheme: "TutanotaSharedFramework",
devices: ["iphone-15-ios-17-4"]
)
end

desc "Renew prod adhoc cert"
Expand Down
17 changes: 9 additions & 8 deletions ci/Ios.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,15 @@ pipeline {
}

stages {
stage('Check Github') {
steps {
script {
def util = load "ci/jenkins-lib/util.groovy"
util.checkGithub()
}
}
}
// FIXME: roll back
// stage('Check Github') {
// steps {
// script {
// def util = load "ci/jenkins-lib/util.groovy"
// util.checkGithub()
// }
// }
// }
stage("Run tests") {
agent {
label 'mac-intel'
Expand Down

0 comments on commit 410a42d

Please sign in to comment.