Skip to content

Commit

Permalink
feat: initial test action, fix: remove debug print line
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoDotIO committed Aug 11, 2024
1 parent c4eeae7 commit f68b2f1
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 2 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: AptosKit Tests

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build-and-test:
runs-on: macos-13-arm64

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '14.0'

- name: Build and test
run: |
xcodebuild clean build test \
-scheme AptosKit \
-sdk macosx13.0 \
-destination 'platform=macOS,arch=arm64' \
-enableCodeCoverage YES | tee xcodebuild.log | xcpretty
# Locate the Derived Data directory
DERIVED_DATA_DIR=$(xcodebuild -showBuildSettings | grep -m1 ' OBJROOT=' | sed 's/^.*OBJROOT = //')
# Find the .xcresult file
RESULT_FILE=$(find "$DERIVED_DATA_DIR" -type d -name "*.xcresult" | head -n 1)
# Create a directory for the output results
mkdir -p output
# Copy the .xcresult file to the output directory
cp -R "$RESULT_FILE" output/
# Copy the xcodebuild log file as well
cp xcodebuild.log output/
- name: Upload test results
uses: actions/upload-artifact@v3
with:
name: xcresult-files
path: output/
18 changes: 18 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,24 @@
"version" : "1.2.8"
}
},
{
"identity" : "swift-docc-plugin",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-docc-plugin.git",
"state" : {
"revision" : "26ac5758409154cc448d7ab82389c520fa8a8247",
"version" : "1.3.0"
}
},
{
"identity" : "swift-docc-symbolkit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-docc-symbolkit",
"state" : {
"revision" : "b45d1f2ed151d057b54504d653e0da5552844e34",
"version" : "1.0.0"
}
},
{
"identity" : "swiftyjson",
"kind" : "remoteSourceControl",
Expand Down
3 changes: 2 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ let package = Package(
.package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", from: "1.4.2"),
.package(url: "https://github.com/tesseract-one/Bip39.swift.git", from: "0.1.1"),
.package(url: "https://github.com/tesseract-one/Blake2.swift.git", from: "0.2.0"),
.package(url: "https://github.com/attaswift/BigInt.git", from: "5.3.0")
.package(url: "https://github.com/attaswift/BigInt.git", from: "5.3.0"),
.package(url: "https://github.com/apple/swift-docc-plugin.git", from: "1.0.0")
],
targets: [
.target(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public struct Ed25519Authenticator: AuthenticatorProtocol {
}

public func verify(_ data: Data) throws -> Bool {
print("DEBUG: SIG - \(data.hexEncodedString())")
return try self.publicKey.verify(data: data, signature: self.signature)
}

Expand Down

0 comments on commit f68b2f1

Please sign in to comment.