Browse Source

Cache bundle gem for better performance

onevcat 6 years ago
parent
commit
13ab375cbe
1 changed files with 7 additions and 1 deletions
  1. 7 1
      .github/workflows/build.yaml

+ 7 - 1
.github/workflows/build.yaml

@@ -9,7 +9,13 @@ jobs:
 
 
     steps:
     steps:
     - uses: actions/checkout@v1
     - 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
     - name: Install Gems
-      run: bundle install
+      run: bundle install --path vendor/bundle
     - name: Run tests
     - name: Run tests
       run: bundle exec fastlane tests
       run: bundle exec fastlane tests