Browse Source

Merge pull request #1337 from onevcat/feature/github-ci

Migrate to GitHub action as CI
Wei Wang 6 years ago
parent
commit
15d76dba0b

+ 26 - 0
.github/workflows/build.yaml

@@ -0,0 +1,26 @@
+name: Build & Test
+
+on: [push, pull_request]
+
+jobs:
+  run-test:
+    runs-on: macOS-latest
+    strategy:
+      matrix:
+        destination: ['macOS', 'iOS Simulator,name=iPhone 8', 'tvOS Simulator,name=Apple TV']
+        swift-version: [5.0, 4.2, 4.0]
+    steps:
+      - uses: actions/checkout@v1
+      - uses: actions/cache@v1
+        with:
+          path: vendor/bundle
+          key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
+          restore-keys: |
+            ${{ runner.os }}-gem-
+      - name: Install Gems
+        run: bundle install --path vendor/bundle
+      - name: Run tests
+        env:
+          DESTINATION: platform=${{ matrix.destination }}
+          SWIFT_VERSION: ${{ matrix.swift-version }}
+        run: bundle exec fastlane test_ci

+ 1 - 1
.ruby-version

@@ -1 +1 @@
-2.4.5
+2.4.6

+ 0 - 25
.travis.yml

@@ -1,25 +0,0 @@
-language: swift
-
-osx_image: 
-- xcode10.3
-- xcode11.1
-
-env:
-- DESTINATION='platform=macOS' SWIFT_VERSION=5.0
-- DESTINATION='platform=iOS Simulator,name=iPhone 8' SWIFT_VERSION=5.0
-- DESTINATION='platform=tvOS Simulator,name=Apple TV' SWIFT_VERSION=5.0
-- DESTINATION='platform=macOS' SWIFT_VERSION=4.2
-- DESTINATION='platform=iOS Simulator,name=iPhone 8' SWIFT_VERSION=4.2
-- DESTINATION='platform=tvOS Simulator,name=Apple TV' SWIFT_VERSION=4.2
-- DESTINATION='platform=macOS' SWIFT_VERSION=4.0
-- DESTINATION='platform=iOS Simulator,name=iPhone 8' SWIFT_VERSION=4.0
-- DESTINATION='platform=tvOS Simulator,name=Apple TV' SWIFT_VERSION=4.0
-
-cache: bundler
-
-before_install:
-  - gem update --system
-  - gem install bundler
-
-script:
-  - bundle exec fastlane test_ci

+ 5 - 0
Kingfisher.xcodeproj/xcshareddata/xcschemes/Kingfisher.xcscheme

@@ -48,6 +48,11 @@
                BlueprintName = "KingfisherTests"
                ReferencedContainer = "container:Kingfisher.xcodeproj">
             </BuildableReference>
+            <SkippedTests>
+               <Test
+                  Identifier = "ImagePrefetcherTests">
+               </Test>
+            </SkippedTests>
          </TestableReference>
       </Testables>
    </TestAction>

+ 0 - 10
codecov.yml

@@ -1,10 +0,0 @@
-comment:
-  layout: header, changes, diff
-coverage:
-  ignore:
-  - Pods
-  - Tests
-  - Demo
-  - Kingfisher-Demo
-  - KingfisherTests
-