diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..2a78cd6 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,38 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + unit-tests: + runs-on: ubuntu-latest + container: swift:6.2 + steps: + - uses: actions/checkout@v4 + - name: Build + run: swift build + - name: Run unit tests + run: swift test --filter ConfigurationAWSTests + + integration-tests: + runs-on: ubuntu-latest + container: swift:6.2 + services: + localstack: + image: localstack/localstack + env: + SERVICES: secretsmanager + options: >- + --health-cmd "curl -f http://localhost:4566/_localstack/health" + --health-interval 5s + --health-timeout 3s + --health-retries 10 + env: + LOCALSTACK_ENDPOINT: http://localstack:4566 + steps: + - uses: actions/checkout@v4 + - name: Run integration tests + run: swift test --traits Soto --filter IntegrationTests diff --git a/Sources/ConfigurationAWSTests/TypeConversionTests.swift b/Sources/ConfigurationAWSTests/TypeConversionTests.swift index 9e1d77b..420d896 100644 --- a/Sources/ConfigurationAWSTests/TypeConversionTests.swift +++ b/Sources/ConfigurationAWSTests/TypeConversionTests.swift @@ -6,15 +6,10 @@ // import Configuration +import Foundation import Testing @testable import ConfigurationAWS -#if canImport(FoundationEssentials) -import FoundationEssentials -#else -import Foundation -#endif - @Suite("Type Conversion") struct TypeConversionTests { @Test func stringType() throws {