Skip to content

Commit 166d6bc

Browse files
committed
fix: remove unnecessary import and correct cache keys
- Remove unused HTMLElementTypesFoundation import from Input.Button Tests - Revert unnecessary test target dependency on HTMLElementTypesFoundation - Fix CI cache keys to only use Package.swift (Package.resolved is gitignored by design for libraries)
1 parent d346b97 commit 166d6bc

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
uses: actions/cache@v4
3232
with:
3333
path: .build
34-
key: ${{ runner.os }}-spm-${{ hashFiles('Package.swift', 'Package.resolved') }}
34+
key: ${{ runner.os }}-spm-${{ hashFiles('Package.swift') }}
3535
restore-keys: |
3636
${{ runner.os }}-spm-
3737
@@ -51,7 +51,7 @@ jobs:
5151
uses: actions/cache@v4
5252
with:
5353
path: .build
54-
key: ${{ runner.os }}-spm-${{ hashFiles('Package.swift', 'Package.resolved') }}
54+
key: ${{ runner.os }}-spm-${{ hashFiles('Package.swift') }}
5555
restore-keys: ${{ runner.os }}-spm-
5656

5757
# Note: swift test builds automatically in release mode
@@ -71,7 +71,7 @@ jobs:
7171
uses: actions/cache@v4
7272
with:
7373
path: .build
74-
key: ${{ runner.os }}-swift60-spm-${{ hashFiles('Package.swift', 'Package.resolved') }}
74+
key: ${{ runner.os }}-swift60-spm-${{ hashFiles('Package.swift') }}
7575
restore-keys: ${{ runner.os }}-swift60-spm-
7676

7777
# Note: swift test builds automatically

Package.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ let package = Package(
7373
.testTarget(
7474
name: .htmlElementTypes.tests,
7575
dependencies: [
76-
.htmlElementTypes,
77-
.htmlElementTypesFoundation
76+
.htmlElementTypes
7877
]
7978
),
8079
.target(

Tests/HTMLElementTypes Tests/Elements/Input.Types/Input.Button Tests.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// ===----------------------------------------------------------------------===//
1212

1313
import Foundation
14-
import HTMLElementTypesFoundation
1514
import Testing
1615

1716
@Suite("Input.Button Test")

0 commit comments

Comments
 (0)