From ebc1c3f143dbf2e91889058d3c4e6bc0e07df8dc Mon Sep 17 00:00:00 2001 From: Paolo Prodossimo Lopes <70642432+PaoloProdossimoLopes@users.noreply.github.com> Date: Fri, 16 May 2025 07:21:20 -0300 Subject: [PATCH 1/7] =?UTF-8?q?=F0=9F=91=B7=20configuring=20CI=20to=20be?= =?UTF-8?q?=20reusable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/swift.yml | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 1854bb4..baaa254 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -1,20 +1,7 @@ -name: Swift +name: Swift Package Manager -on: - pull_request: - branches: [ "develop" ] +on: [push, pull_request] 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 + use-reusable: + uses: EasyPackages/.github/.github/workflows/ci.yml@main From 855ddfe91c882a9c0d5133fa58c156a88ba99855 Mon Sep 17 00:00:00 2001 From: Paolo Prodossimo Lopes <70642432+PaoloProdossimoLopes@users.noreply.github.com> Date: Fri, 16 May 2025 07:25:49 -0300 Subject: [PATCH 2/7] =?UTF-8?q?=F0=9F=92=9A=20use=20correct=20name=20for?= =?UTF-8?q?=20workflow=20job?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build_and_test_packages.yml | 7 +++++++ .github/workflows/swift.yml | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/build_and_test_packages.yml delete mode 100644 .github/workflows/swift.yml diff --git a/.github/workflows/build_and_test_packages.yml b/.github/workflows/build_and_test_packages.yml new file mode 100644 index 0000000..0b8997e --- /dev/null +++ b/.github/workflows/build_and_test_packages.yml @@ -0,0 +1,7 @@ +name: Swift Package Manager + +on: [push, pull_request] + +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 baaa254..0000000 --- a/.github/workflows/swift.yml +++ /dev/null @@ -1,7 +0,0 @@ -name: Swift Package Manager - -on: [push, pull_request] - -jobs: - use-reusable: - uses: EasyPackages/.github/.github/workflows/ci.yml@main From c441ca824b64f617cb4a6fc655382a2cd2f6d1a9 Mon Sep 17 00:00:00 2001 From: Paolo Prodossimo Lopes <70642432+PaoloProdossimoLopes@users.noreply.github.com> Date: Fri, 16 May 2025 07:28:40 -0300 Subject: [PATCH 3/7] =?UTF-8?q?=F0=9F=92=9A=20fix=20reusable=20workflow=20?= =?UTF-8?q?path?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build_and_test_packages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test_packages.yml b/.github/workflows/build_and_test_packages.yml index 0b8997e..2998636 100644 --- a/.github/workflows/build_and_test_packages.yml +++ b/.github/workflows/build_and_test_packages.yml @@ -4,4 +4,4 @@ on: [push, pull_request] jobs: use-reusable: - uses: EasyPackages/.github/.github/workflows/build_and_test_packages.yml@main + uses: .github/.github/workflows/build_and_test_packages.yml@main From 5a087dda99a3b0ddb992bf198078e7cd17a71cfb Mon Sep 17 00:00:00 2001 From: Paolo Prodossimo Lopes <70642432+PaoloProdossimoLopes@users.noreply.github.com> Date: Fri, 16 May 2025 07:36:12 -0300 Subject: [PATCH 4/7] =?UTF-8?q?=F0=9F=92=9A=20make=20rollback=20to=20corre?= =?UTF-8?q?ct=20path?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build_and_test_packages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test_packages.yml b/.github/workflows/build_and_test_packages.yml index 2998636..0b8997e 100644 --- a/.github/workflows/build_and_test_packages.yml +++ b/.github/workflows/build_and_test_packages.yml @@ -4,4 +4,4 @@ on: [push, pull_request] jobs: use-reusable: - uses: .github/.github/workflows/build_and_test_packages.yml@main + uses: EasyPackages/.github/.github/workflows/build_and_test_packages.yml@main From cd7d03397810430809d2b1b38813637c6499e0af Mon Sep 17 00:00:00 2001 From: Paolo Prodossimo Lopes <70642432+PaoloProdossimoLopes@users.noreply.github.com> Date: Fri, 16 May 2025 07:59:56 -0300 Subject: [PATCH 5/7] =?UTF-8?q?=F0=9F=92=9A=20remove=20redundant=20executi?= =?UTF-8?q?on?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build_and_test_packages.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test_packages.yml b/.github/workflows/build_and_test_packages.yml index 0b8997e..d41e712 100644 --- a/.github/workflows/build_and_test_packages.yml +++ b/.github/workflows/build_and_test_packages.yml @@ -1,6 +1,10 @@ name: Swift Package Manager -on: [push, pull_request] +on: + pull_request: + branches: + - main + - develop jobs: use-reusable: From e0e8e4076607495b5ecec4fb1d6e2aa99901c402 Mon Sep 17 00:00:00 2001 From: Paolo Prodossimo Lopes Date: Fri, 16 May 2025 08:09:51 -0300 Subject: [PATCH 6/7] =?UTF-8?q?=E2=9C=85=20fix=20custom=20formatter=20pass?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Tests/EasyDateTests/DateExtensionsTests.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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") } } From ac83c388f1b5bdfb588c285e7a40b5f64e1ca986 Mon Sep 17 00:00:00 2001 From: Paolo Prodossimo Lopes Date: Fri, 16 May 2025 08:13:33 -0300 Subject: [PATCH 7/7] remove pull request template --- .github/pull_request_template.md | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 .github/pull_request_template.md 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