Browse Source

Merge pull request #61 from norio-nomura/update-ci

[GitHub Actions] Test on swift 5.1, 5.2, 5.3
Norio Nomura 4 years ago
parent
commit
580f4a1805
2 changed files with 11 additions and 9 deletions
  1. 5 4
      .github/workflows/swiftpm.yml
  2. 6 5
      .github/workflows/xcodebuild.yml

+ 5 - 4
.github/workflows/swiftpm.yml

@@ -18,8 +18,9 @@ on:
 jobs:
   Xcode:
     strategy:
+      fail-fast: false
       matrix:
-        xcode_version: ['11.4.1']
+        xcode_version: ['11.3.1', '11.7', '12']
     runs-on: macOS-10.15
     env:
       DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode_version }}.app
@@ -30,11 +31,11 @@ jobs:
 
   Linux:
     strategy:
+      fail-fast: false
       matrix:
-        tag: ['4.2', '5.0', '5.1']
+        tag: ['5.1', '5.2', '5.3']
     runs-on: ubuntu-latest
-    container:
-      image: norionomura/swift:${{ matrix.tag }}
+    container: norionomura/swift:${{ matrix.tag }}
     steps:
       - uses: actions/checkout@v1
       - run: swift test

+ 6 - 5
.github/workflows/xcodebuild.yml

@@ -20,8 +20,9 @@ on:
 jobs:
   xcodebuild:
     strategy:
+      fail-fast: false
       matrix:
-        xcode_version: ['11.4.1']
+        xcode_version: ['11.3.1', '11.7', '12']
         xcode_flags: ['-scheme Base32 -enableCodeCoverage YES -parallel-testing-enabled NO test']
         xcode_flags_for_build_only: ['-scheme Base32 build']
     runs-on: macOS-10.15
@@ -42,7 +43,7 @@ jobs:
       - name: watchOS Simulator
         run: xcodebuild ${{ matrix.xcode_flags_for_build_only }} -sdk watchsimulator | xcpretty
         shell: bash
-      # - name: Codecov
-      #   if: matrix.xcode_version == '10.3'
-      #   run: curl -s https://codecov.io/bash | bash -s -- -t ${{ secrets.CODECOV_TOKEN }}
-      #   shell: bash
+      - name: Codecov
+        if: matrix.xcode_version == '12'
+        run: curl -s https://codecov.io/bash | bash -s -- -t ${{ secrets.CODECOV_TOKEN }}
+        shell: bash