-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # .jazzy.yaml
- Loading branch information
Showing
104 changed files
with
16,049 additions
and
8,859 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: CodeQl | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
pull_request: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
deploy: | ||
name: Running unit tests | ||
runs-on: macos-14 | ||
steps: | ||
- name: Select Xcode version | ||
run: sudo xcode-select -s '/Applications/Xcode_15.2.app/Contents/Developer' | ||
|
||
- name: Checkout repository | ||
uses: actions/[email protected] | ||
|
||
- name: Get current date | ||
run: echo "NOW=$(date +'%Y-%m-%dT%H-%M-%S')" >> $GITHUB_ENV | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v3 | ||
with: | ||
languages: "swift" | ||
|
||
- name: Test | ||
run: xcodebuild -scheme KukaiCoreSwift -destination "platform=iOS Simulator,OS=17.2,name=iPhone 15" | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v3 | ||
with: | ||
category: "/language:swift" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ on: | |
- main | ||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
runs-on: macos-14 | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
name: Unit Test | ||
|
||
# Run unit tests on every push or pull request, to main or develop | ||
on: | ||
push: | ||
branches: | ||
|
@@ -11,43 +9,74 @@ on: | |
- 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 | ||
deploy: | ||
name: Running unit tests | ||
runs-on: macos-14 | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Select Xcode version | ||
#run: sudo xcode-select -s '/Applications/Xcode_14.3.1.app/Contents/Developer' | ||
run: sudo xcode-select -s '/Applications/Xcode_15.2.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 | ||
|
||
- 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" | ||
|
||
|
||
# # Temporary step due to Xcode 15 / Github actions runner issues | ||
# - name: Install iOS 16 simulator for Xcode 15 | ||
# run: | | ||
# # Make iOS 16.4 simulator runtime available to Xcode 15 | ||
# sudo mkdir -p /Library/Developer/CoreSimulator/Profiles/Runtimes | ||
# sudo ln -s /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS\ 16.4.simruntime | ||
|
||
# # Create an iOS 16.4 simulator | ||
# xcrun simctl create "iPhone 14 Pro (16.4)" "com.apple.CoreSimulator.SimDeviceType.iPhone-14-Pro" "com.apple.CoreSimulator.SimRuntime.iOS-16-4" | ||
|
||
|
||
|
||
# - name: Install yeetd | ||
# run: | | ||
# wget https://github.com/biscuitehh/yeetd/releases/download/1.0/yeetd-normal.pkg | ||
# sudo installer -pkg yeetd-normal.pkg -target / | ||
# yeetd & | ||
|
||
|
||
|
||
|
||
# - name: Initialize CodeQL | ||
# uses: github/codeql-action/init@v3 | ||
# with: | ||
# languages: "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" | ||
|
||
|
||
# - name: Launch simulator | ||
# run: open -a Simulator --args -CurrentDeviceUDID $(xcrun simctl list --json | ruby -e "require 'json'; puts JSON.parse(ARGF.read)['devices']['com.apple.CoreSimulator.SimRuntime.iOS-17-0'].find { |s| s['name'] == 'iPhone 15' }['udid']") | ||
|
||
|
||
|
||
|
||
- name: Test | ||
#run: xcodebuild test -scheme KukaiCoreSwift -destination "platform=iOS Simulator,OS=16.4,name=iPhone 14" -enableCodeCoverage YES -resultBundlePath "~/xcode-$NOW.xcresult" | ||
run: xcodebuild test -scheme KukaiCoreSwift -destination "platform=iOS Simulator,OS=17.2,name=iPhone 15" -enableCodeCoverage YES -resultBundlePath "~/xcode-$NOW.xcresult" | ||
|
||
|
||
|
||
# - name: Perform CodeQL Analysis | ||
# uses: github/codeql-action/analyze@v3 | ||
# with: | ||
# category: "/language:swift" | ||
|
||
|
||
|
||
- name: Upload results | ||
if: ${{ success() || failure() }} | ||
uses: actions/[email protected] | ||
with: | ||
name: "results-${{ env.NOW }}.xcresult" | ||
path: "~/xcode-${{ env.NOW }}.xcresult" | ||
|
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
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
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
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
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
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
Oops, something went wrong.