Skip to content

- fix problematic test relying on the order of a dictionary #269

- fix problematic test relying on the order of a dictionary

- fix problematic test relying on the order of a dictionary #269

Workflow file for this run

name: Unit Test
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
jobs:
deploy:
name: Deploying to Testflight
runs-on: macos-13
steps:
- name: Select Xcode version
run: sudo xcode-select -s '/Applications/Xcode_15.0.1.app/Contents/Developer'
- name: Checkout repository
uses: actions/[email protected]
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: "swift"
- name: Get current date
run: echo "NOW=$(date +'%Y-%m-%dT%H:%M:%S')" >> $GITHUB_ENV
- name: Test
run: xcodebuild -scheme KukaiCoreSwift test -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 12' -enableCodeCoverage YES -resultBundlePath "../../xcode-$NOW.xcresult"
- name: Upload results
uses: actions/upload-artifact@v2
with:
name: "results-$NOW.xcresult"
path: "/Users/runner/work/xcode-$NOW.xcresult"
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:swift"
# Checkout the code, and run mxcl's xcodebuild action to run the unit tests
# jobs:
# build:
# runs-on: macos-13
# strategy:
# matrix:
# platform:
# - iOS
# xcode:
# - ^15
# steps:
# - uses: actions/[email protected]
# - name: Initialize CodeQL
# uses: github/codeql-action/init@v2
# with:
# languages: "swift"
# - uses: mxcl/[email protected]
# with:
# platform: ${{ matrix.platform }}
# xcode: ${{ matrix.xcode }}
# action: test
# scheme: KukaiCoreSwift
# code-coverage: true
# upload-logs: always
# - name: Perform CodeQL Analysis
# uses: github/codeql-action/analyze@v2
# with:
# category: "/language:swift"
#- name: Test
# run: xcodebuild -scheme KukaiCoreSwift test -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 12' -enableCodeCoverage YES -resultBundlePath "../../xcode-$GITHUB_RUN_ID.xcresult"
#
#- name: Upload results
# uses: actions/upload-artifact@v2
# with:
# name: "results-$GITHUB_RUN_ID.xcresult"
# path: "/Users/runner/work/xcode-$GITHUB_RUN_ID.xcresult"