add new operation extractor #267
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit Test | |
# Run unit tests on every push or pull request, to main or develop | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
pull_request: | |
branches: | |
- main | |
- develop | |
# Checkout the code, and run mxcl's xcodebuild action to run the unit tests | |
jobs: | |
build: | |
runs-on: macos-12 | |
strategy: | |
matrix: | |
platform: | |
- iOS | |
xcode: | |
- ^14 | |
steps: | |
- uses: actions/checkout@v3.1.0 | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: "swift" | |
- uses: mxcl/xcodebuild@v2.0 | |
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" |