From 1ba0c2e4fb53e97ddddc21e921c4bcb93ceea706 Mon Sep 17 00:00:00 2001 From: Vladimir Espinola Date: Thu, 6 Jun 2024 15:59:02 -0400 Subject: [PATCH] updated ci files --- .github/workflows/ci.yml | 4 ++-- .github/workflows/lint.yml | 9 ++++++--- .github/workflows/ui.yml | 7 +++---- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8341163..a323c8f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,11 +4,11 @@ on: push: branches: - main - - feature/* + - "feature/*" pull_request: branches: - main - - feature/* + - "feature/*" - swift-migration workflow_dispatch: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3f2bb6f..e192fbd 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,12 +1,15 @@ name: Lint on: + push: + branches: + - main + - "feature/*" pull_request: branches: - - develop - swift-migration - main - - feature/* + - "feature/*" concurrency: group: ${{ github.ref_name }} @@ -25,4 +28,4 @@ jobs: run: | sudo xcode-select -switch /Applications/Xcode_15.3.app - name: Lint - run: swiftlint \ No newline at end of file + run: swiftlint diff --git a/.github/workflows/ui.yml b/.github/workflows/ui.yml index 6f3a7d9..980a13a 100644 --- a/.github/workflows/ui.yml +++ b/.github/workflows/ui.yml @@ -3,10 +3,9 @@ name: Run UI Test Cases on: pull_request: branches: - - develop - swift-migration - main - - feature/* + - "feature/*" concurrency: group: ${{ github.ref_name }} @@ -24,7 +23,7 @@ jobs: uses: actions/checkout@v3 - name: Reset Simulators run: xcrun simctl erase all - - name: "Run UI Tests" + - name: Run UI Tests run: | set -o pipefail xcodebuild -workspace "attentive-ios-sdk.xcworkspace" -scheme "CreativeUITest" -destination "platform=iOS Simulator,OS=17.4,name=iPhone 15 Pro" -derivedDataPath build/ -resultBundlePath ui-test-results.xcresult test | xcpretty @@ -36,4 +35,4 @@ jobs: uses: actions/upload-artifact@v3 with: name: ui-test-results - path: ui-test-results.xcresult.tar.gz \ No newline at end of file + path: ui-test-results.xcresult.tar.gz