Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/detect-api-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: 👾 Define Diff Versions
run: |
NEW="${{ env.source }}~${{ env.githubRepo }}"
if [[ '${{ github.head_ref || env.noTargetBranch }}' == 'release/*' ]]
if [[ '${{ github.head_ref || env.noTargetBranch }}' == release/* ]]
then
LATEST_TAG=$(git describe --tags --abbrev=0)
OLD="$LATEST_TAG~${{ env.githubRepo }}"
Expand All @@ -56,7 +56,7 @@ jobs:
noTargetBranch: 'no target branch'

- name: 🔍 Detect Changes
uses: Adyen/adyen-swift-public-api-diff@github-action
uses: Adyen/adyen-swift-public-api-diff@main
id: public_api_diff
with:
platform: "macOS"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ extension SwiftPackageDescription {
extension SwiftPackageDescription.Platform: CustomStringConvertible {

package var description: String {
"\(name)(\(version))"
".\(name)(\(version))"
}
}

Expand Down
10 changes: 5 additions & 5 deletions Tests/UnitTests/SwiftPackageFileAnalyzerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,14 @@ class SwiftPackageFileAnalyzerTests: XCTestCase {
),
.init(
changeType: .change(
oldDescription: "platforms: [iOS(12.0), macOS(10.0)]",
newDescription: "platforms: [iOS(15.0), visionOS(1.0)]"
oldDescription: "platforms: [.iOS(12.0), .macOS(10.0)]",
newDescription: "platforms: [.iOS(15.0), .visionOS(1.0)]"
),
parentPath: "Package.swift",
listOfChanges: [
"Added visionOS(1.0)",
"Changed from iOS(12.0) to iOS(15.0)",
"Removed macOS(10.0)"
"Added .visionOS(1.0)",
"Changed from .iOS(12.0) to .iOS(15.0)",
"Removed .macOS(10.0)"
]
),
.init(
Expand Down
Loading