diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml new file mode 100644 index 0000000..cb9d2a9 --- /dev/null +++ b/.github/workflows/unit_tests.yml @@ -0,0 +1,33 @@ +# This workflow will test a Swift project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift + +name: Unit Tests + +on: + - pull_request + +concurrency: + group: ${{ github.ref_name }} + cancel-in-progress: true + +jobs: + test-ios: + name: iOS 18.1 + runs-on: macos-latest + env: + DEVELOPER_DIR: "/Applications/Xcode_16.1.app/Contents/Developer" + + steps: + # Checkout the repository + - name: Checkout repository + uses: actions/checkout@v4 + + # Run Unit Tests + - name: Run tests + run: | + xcodebuild test \ + -scheme EDXMobileAnalytics \ + -sdk iphonesimulator \ + -destination "OS=18.1,name=iPhone 16 Pro" \ + -skipPackagePluginValidation \ + -skipMacroValidation diff --git a/Package.resolved b/Package.resolved index 09d3db2..d269ff0 100644 --- a/Package.resolved +++ b/Package.resolved @@ -1,5 +1,5 @@ { - "originHash" : "c0bd9c8ff1fb7e8685784dbbcc68161a650dfd2dd2edf28609fcdc846183a2f5", + "originHash" : "24865ce1a5bdb12bdf2082dc9a6b3b327986ee32238127921bf6e08f58b56e7f", "pins" : [ { "identity" : "abseil-cpp-binary", @@ -178,7 +178,7 @@ "location" : "https://github.com/rnr/openedx-app-foundation-ios.git", "state" : { "branch" : "anton/plugins-experiments", - "revision" : "563721c48b4072314557af4f09827f2fabd9ee40" + "revision" : "374beefe2271233e10c5fa5a012779689d05d817" } }, {