diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..856a33c --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,24 @@ +name: test +on: + push: + branches: + - main + pull_request: + branches: + - main + +env: + DEVELOPER_DIR: /Applications/Xcode_16.4.app/Contents/Developer + +jobs: + test: + runs-on: macOS-15 + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + + - name: Test Build + run: swift build -Xswiftc -warnings-as-errors --enable-experimental-prebuilts + + - name: Run Tests + run: swift test -Xswiftc -warnings-as-errors --enable-experimental-prebuilts \ No newline at end of file diff --git a/Sources/AccessibilityIdentifierMacros/AccessibilityIdentifierMacro.swift b/Sources/AccessibilityIdentifierMacros/AccessibilityIdentifierMacro.swift index bf7bf6f..476d622 100644 --- a/Sources/AccessibilityIdentifierMacros/AccessibilityIdentifierMacro.swift +++ b/Sources/AccessibilityIdentifierMacros/AccessibilityIdentifierMacro.swift @@ -11,6 +11,7 @@ public struct AccessibilityIdentifierGenerationMacro: MemberMacro { public static func expansion( of attribute: AttributeSyntax, providingMembersOf declaration: some DeclGroupSyntax, + conformingTo protocols: [TypeSyntax], in context: some MacroExpansionContext ) throws -> [DeclSyntax] { let name = declaration.as(ClassDeclSyntax.self)?.name.description ?? declaration.as(StructDeclSyntax.self)!.name.description