improve seed/secret detection #86
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 | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
pull_request: | |
branches: | |
- main | |
- 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/checkout@v4.1.1 | |
- name: Get current date | |
run: echo "NOW=$(date +'%Y-%m-%dT%H-%M-%S')" >> $GITHUB_ENV | |
- name: Test | |
run: xcodebuild test -scheme KukaiCryptoSwift -destination "platform=iOS Simulator,OS=17.2,name=iPhone 15" -enableCodeCoverage YES -resultBundlePath "~/xcode-$NOW.xcresult" | |
- name: Upload results | |
if: ${{ success() || failure() }} | |
uses: actions/upload-artifact@v4.3.1 | |
with: | |
name: "results-${{ env.NOW }}.xcresult" | |
path: "~/xcode-${{ env.NOW }}.xcresult" | |