From 4255fe5079c85db9d15cb876a4d9ec38fee76691 Mon Sep 17 00:00:00 2001 From: Mehran Kamalifard Date: Fri, 15 Sep 2023 10:25:05 +0330 Subject: [PATCH] Refactored workflow --- .github/workflows/ci.yml | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e0f0a08..97c5780 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,22 +1,24 @@ - name: Tests PassGuard using CI process + on: - push: + push: branches: - - master + - master paths: - - ".github/workflows/**" - - "Package.swift" - - "PassGuard/**" - pull_request: + - ".github/workflows/**" + - "Package.swift" + - "PassGuard/**" + pull_request: branches: - - master + - master + jobs: - build-and-test: + build-and-test: runs-on: macos-13 steps: - - uses: actions/checkout@v2 - - name: Select Xcode - run: sudo Xcode-select -switch /Applications/Xcode_14.3.app - - name: Build & Test + - name: Checkout Code + uses: actions/checkout@v2 + - name: Select Xcode + run: sudo xcode-select -switch /Applications/Xcode_14.3.app + - name: Build & Test run: xcodebuild test -scheme PassGuard -project PassGuard.xcodeproj -destination 'platform=iOS Simulator,name=iPhone 14'