From d1ba5874571147c4c24efba8a569473d083cfeec Mon Sep 17 00:00:00 2001 From: Paolo Prodossimo Lopes Date: Fri, 16 May 2025 08:19:05 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20make=20ci=20reusable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/pull_request_template.md | 21 ------------------- .github/workflows/build_and_test_packages.yml | 11 ++++++++++ .github/workflows/swift.yml | 20 ------------------ 3 files changed, 11 insertions(+), 41 deletions(-) delete mode 100644 .github/pull_request_template.md create mode 100644 .github/workflows/build_and_test_packages.yml delete mode 100644 .github/workflows/swift.yml 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..e2532c2 --- /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 \ No newline at end of file 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