diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 076c963..494e8e4 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -13,29 +13,28 @@ jobs: fail-fast: false matrix: image: - - swift:5.2.5-xenial - - swift:5.3.2-xenial - - swift:5.3.2-bionic - - swift:5.5.0-focal + - swift:5.5.3-xenial + - swift:5.6.1-bionic + - swift:5.7.2-focal container: ${{ matrix.image }} steps: - name: Checkout Repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Build Swift Debug Package run: swift build -c debug - name: Build Swift Release Package run: swift build -c release - name: Run Tests - run: swift test + run: swift test --enable-test-discovery nextstep: runs-on: macos-latest steps: - name: Select latest available Xcode - uses: maxim-lobanov/setup-xcode@v1.2.1 + uses: maxim-lobanov/setup-xcode@v1.5.1 with: - xcode-version: 13 + xcode-version: 13.2.1 - name: Checkout Repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Build Swift Debug Package run: swift build -c debug - name: Build Swift Release Package diff --git a/.gitignore b/.gitignore index daa3f7d..2f2c940 100644 --- a/.gitignore +++ b/.gitignore @@ -94,4 +94,5 @@ Package.resolved xcuserdata .docker.build .swiftpm +.vscode diff --git a/Package.swift b/Package.swift index 56c3720..91dce8f 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.2 +// swift-tools-version:5.5 import PackageDescription @@ -16,9 +16,9 @@ let package = Package( dependencies: [ .package(url: "https://github.com/Macro-swift/Macro.git", - from: "0.8.11"), + from: "1.0.0"), .package(url: "https://github.com/Macro-swift/MacroExpress.git", - from: "0.8.8") + from: "1.0.0") ], targets: [ diff --git a/Tests/LinuxMain.swift b/Tests/LinuxMain.swift index 9e94db8..cd27ba6 100644 --- a/Tests/LinuxMain.swift +++ b/Tests/LinuxMain.swift @@ -1,6 +1,3 @@ import XCTest -import MacroAppTests -var tests = [ XCTestCaseEntry ]() -tests += MacroAppTests.allTests() -XCTMain(tests) +#error("Swift 5.5 requires --enable-test-discovery")