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
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
7 changes: 1 addition & 6 deletions Sources/ConfigurationAWSTests/TypeConversionTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down