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
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down