From 37e15a2ff6693765e39b9a1010d6ec7022876722 Mon Sep 17 00:00:00 2001 From: Niklas Holloh Date: Thu, 17 Jun 2021 17:52:10 +0200 Subject: [PATCH 1/4] added feature build test ci action --- .github/workflows/feature-build-test | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/feature-build-test diff --git a/.github/workflows/feature-build-test b/.github/workflows/feature-build-test new file mode 100644 index 0000000..07db5fd --- /dev/null +++ b/.github/workflows/feature-build-test @@ -0,0 +1,23 @@ +name: Feature-Build-Test + +on: [pull_request] + +jobs: + build: + name: Swift ${{ matrix.swift }} on ${{ matrix.os }} + strategy: + matrix: + os: [macos-latest] + swift: ["5.2", "5.3", "5.4"] + runs-on: ${{ matrix.os }} + steps: + - uses: fwal/setup-swift@v1 + with: + swift-version: ${{ matrix.swift }} + - uses: actions/checkout@v2 + - name: Clean + run: xcodebuild clean -scheme Simplog + - name: Build + run: xcodebuild -scheme Simplog + - name: Run tests + run: swift test From b1db3ef97c7e3172961e06d7bbf1de5f981c2f5a Mon Sep 17 00:00:00 2001 From: Niklas Holloh Date: Thu, 17 Jun 2021 17:53:59 +0200 Subject: [PATCH 2/4] Added yml mime --- .github/workflows/{feature-build-test => feature-build-test.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{feature-build-test => feature-build-test.yml} (100%) diff --git a/.github/workflows/feature-build-test b/.github/workflows/feature-build-test.yml similarity index 100% rename from .github/workflows/feature-build-test rename to .github/workflows/feature-build-test.yml From f127c642ba30141f5a7392879950d7546c754617 Mon Sep 17 00:00:00 2001 From: Niklas Holloh Date: Thu, 17 Jun 2021 18:00:40 +0200 Subject: [PATCH 3/4] only swift 5.3 --- .github/workflows/feature-build-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/feature-build-test.yml b/.github/workflows/feature-build-test.yml index 07db5fd..3f370fe 100644 --- a/.github/workflows/feature-build-test.yml +++ b/.github/workflows/feature-build-test.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: os: [macos-latest] - swift: ["5.2", "5.3", "5.4"] + swift: ["5.3"] runs-on: ${{ matrix.os }} steps: - uses: fwal/setup-swift@v1 From 41ff246729e4ded8a95d029efa707c575a3fd5c4 Mon Sep 17 00:00:00 2001 From: Niklas Holloh Date: Thu, 17 Jun 2021 22:39:35 +0200 Subject: [PATCH 4/4] added dev and release jobs --- .github/workflows/develop.yml | 26 ++++++++++++++++++++++++ .github/workflows/feature-build-test.yml | 5 ++++- .github/workflows/release.yml | 26 ++++++++++++++++++++++++ 3 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/develop.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml new file mode 100644 index 0000000..4a6931b --- /dev/null +++ b/.github/workflows/develop.yml @@ -0,0 +1,26 @@ +name: Snapshot + +on: + push: + branches: + - develop + +jobs: + build: + name: Swift ${{ matrix.swift }} on ${{ matrix.os }} + strategy: + matrix: + os: [macos-latest] + swift: ["5.3"] + runs-on: ${{ matrix.os }} + steps: + - uses: fwal/setup-swift@v1 + with: + swift-version: ${{ matrix.swift }} + - uses: actions/checkout@v2 + - name: Clean + run: xcodebuild clean -scheme Simplog + - name: Build + run: xcodebuild -scheme Simplog + - name: Run tests + run: swift test diff --git a/.github/workflows/feature-build-test.yml b/.github/workflows/feature-build-test.yml index 3f370fe..7a1faab 100644 --- a/.github/workflows/feature-build-test.yml +++ b/.github/workflows/feature-build-test.yml @@ -1,6 +1,9 @@ name: Feature-Build-Test -on: [pull_request] +on: + pull_request: + branches: + - feature/* jobs: build: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..7e409e6 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,26 @@ +name: Snapshot + +on: + push: + branches: + - master + +jobs: + build: + name: Swift ${{ matrix.swift }} on ${{ matrix.os }} + strategy: + matrix: + os: [macos-latest] + swift: ["5.3"] + runs-on: ${{ matrix.os }} + steps: + - uses: fwal/setup-swift@v1 + with: + swift-version: ${{ matrix.swift }} + - uses: actions/checkout@v2 + - name: Clean + run: xcodebuild clean -scheme Simplog + - name: Build + run: xcodebuild -scheme Simplog + - name: Run tests + run: swift test