diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml new file mode 100644 index 0000000..062cbae --- /dev/null +++ b/.github/workflows/swift.yml @@ -0,0 +1,31 @@ +# This workflow will build a Swift project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift + +name: Run Fastlane + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: macos-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.1' # Ensure this matches the required version + - name: Install Bundler + run: gem install bundler -v 2.6.3 + - name: Install dependencies + run: bundle install + - name: Skip Swift Macros + run: defaults write com.apple.dt.Xcode IDESkipMacroFingerprintValidation -bool YES + - uses: maierj/fastlane-action@v3.1.0 + with: + lane: 'tests' diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 6127932..a31f53c 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -24,6 +24,6 @@ end lane :tests do run_tests(workspace: "GitAPIChallenge.xcworkspace", - devices: ["iPhone 14 Pro (16.0)"], + devices: ["iPhone 15 Pro"], scheme: "GitAPIChallenge") end \ No newline at end of file