diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md deleted file mode 100644 index 18cc628..0000000 --- a/.github/pull_request_template.md +++ /dev/null @@ -1,21 +0,0 @@ -## Description - -> Briefly describe what this PR does. Focus on the problem solved or the improvement made. - - - -## ✅ Checklist - -> Mark the conditions was full filled - -- [ ] Code was tested locally -- [ ] No magic numbers -- [ ] Documentation updated (if applicable) -- [ ] No comments -- [ ] No force unwraps - -## 🧪 How to Test - -> Describe the steps to test this change. - - \ No newline at end of file diff --git a/.github/workflows/build_and_test_packages.yml b/.github/workflows/build_and_test_packages.yml new file mode 100644 index 0000000..d41e712 --- /dev/null +++ b/.github/workflows/build_and_test_packages.yml @@ -0,0 +1,11 @@ +name: Swift Package Manager + +on: + pull_request: + branches: + - main + - develop + +jobs: + use-reusable: + uses: EasyPackages/.github/.github/workflows/build_and_test_packages.yml@main diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml deleted file mode 100644 index 1854bb4..0000000 --- a/.github/workflows/swift.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Swift - -on: - pull_request: - branches: [ "develop" ] - -jobs: - build: - runs-on: macos-latest - - steps: - - uses: actions/checkout@v4 - - name: Setup Swift - uses: fwal/setup-swift@v2 - with: - swift-version: '6.0.0' - - name: Build - run: swift build -v - - name: Run tests - run: swift test -v \ No newline at end of file diff --git a/Tests/EasyDateTests/DateExtensionsTests.swift b/Tests/EasyDateTests/DateExtensionsTests.swift index d9b0bb1..211d7c8 100644 --- a/Tests/EasyDateTests/DateExtensionsTests.swift +++ b/Tests/EasyDateTests/DateExtensionsTests.swift @@ -341,7 +341,7 @@ struct DateExtensionsTests { )! func sut(using formatter: DateFormatter) -> String { - testDate.formatted(using: formatter, timeZone: .gmt) + testDate.formatted(using: formatter, locale: .enUS, timeZone: .gmt) } @Test("iso8601") @@ -377,7 +377,7 @@ struct DateExtensionsTests { @Test("custom pattern") func custom() { let formatter = DateFormatter.custom("MMM yyyy") - #expect(sut(using: formatter) == "mai. 2025") + #expect(sut(using: formatter) == "May 2025") } }