From e4196352096be6e2c421db908088d1b2d2050b6a Mon Sep 17 00:00:00 2001 From: Jamie Macey Date: Mon, 12 Oct 2020 13:20:46 -0700 Subject: [PATCH] cache gems/npm --- .github/workflows/ruby.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index cb7feb4..e782f18 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -19,13 +19,17 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up Ruby - # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby, - # change this to (see https://github.com/ruby/setup-ruby#versioning): - # uses: ruby/setup-ruby@v1 - uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0 + - uses: ruby/setup-ruby@v1 + with: { ruby-version: 2.6 } + + - uses: actions/cache@v2 + id: cache with: - ruby-version: 2.6 + path: | + rswag-ui/node_modules + vendor/bundle + key: ${{ runner.os }}-deps-${{ hashFiles('**/Gemfile.lock', '**/yarn.lock') }} + - name: Install dependencies run: ./ci/build.sh - name: Run tests