Skip to content

Commit

Permalink
try to address new CI issue
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmcl committed Dec 6, 2023
1 parent 3786e9b commit 88f1bf7
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,28 @@ jobs:
- 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@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"
run: xcodebuild -scheme KukaiCoreSwift test -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 12' -enableCodeCoverage YES -resultBundlePath "$PWD/xcode-$NOW.xcresult"

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:swift"

- name: Upload results
if: ${{ success() || failure() }}
uses: actions/upload-artifact@v2
with:
name: "results-$NOW.xcresult"
path: "$PWD/xcode-$NOW.xcresult"



Expand Down

0 comments on commit 88f1bf7

Please sign in to comment.