Skip to content

Commit f2bcabd

Browse files
authored
Merge pull request #4 from num42/add_github_actions_workflow
Add GitHub actions workflow
2 parents 565f5ff + dcfdc8d commit f2bcabd

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.github/workflows/test.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: test
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
10+
env:
11+
DEVELOPER_DIR: /Applications/Xcode_16.4.app/Contents/Developer
12+
13+
jobs:
14+
test:
15+
runs-on: macOS-15
16+
steps:
17+
- name: Checkout Repository
18+
uses: actions/checkout@v3
19+
20+
- name: Test Build
21+
run: swift build -Xswiftc -warnings-as-errors --enable-experimental-prebuilts
22+
23+
- name: Run Tests
24+
run: swift test -Xswiftc -warnings-as-errors --enable-experimental-prebuilts

Sources/AccessibilityIdentifierMacros/AccessibilityIdentifierMacro.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ public struct AccessibilityIdentifierGenerationMacro: MemberMacro {
1111
public static func expansion(
1212
of attribute: AttributeSyntax,
1313
providingMembersOf declaration: some DeclGroupSyntax,
14+
conformingTo protocols: [TypeSyntax],
1415
in context: some MacroExpansionContext
1516
) throws -> [DeclSyntax] {
1617
let name = declaration.as(ClassDeclSyntax.self)?.name.description ?? declaration.as(StructDeclSyntax.self)!.name.description

0 commit comments

Comments
 (0)