From 6350f0e59fd5bac9d04dd422e7a5fc986c15081d Mon Sep 17 00:00:00 2001 From: Brandon Keepers Date: Fri, 13 Oct 2023 12:06:38 -0400 Subject: [PATCH] Remove actions/cache, just rely on ruby/node actions for caching --- .github/workflows/ci.yml | 9 ++------- .github/workflows/examples.yml | 11 ++++------- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c5116f93e..31e519300 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,17 +53,12 @@ jobs: with: # Install gems/npm packages from GitHub fails without this persist-credentials: false - - name: Do some action caching - uses: actions/cache@v3 - with: - path: vendor/bundle - key: ${{ runner.os }}-gems-${{ matrix.ruby }}-${{ matrix.rails }}-${{ hashFiles('**/Gemfile.lock') }} - restore-keys: | - ${{ runner.os }}-gems-${{ matrix.ruby }}-${{ matrix.rails }}- - name: Install libpq-dev run: sudo apt-get -yqq install libpq-dev - name: Set up Node uses: actions/setup-node@v3 + with: + cache: 'npm' - name: Set up Ruby ${{ matrix.ruby }} uses: ruby/setup-ruby@v1 with: diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 69a2738a2..0497b926e 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -51,15 +51,12 @@ jobs: mongodb-version: 4.0 - name: Check out repository code uses: actions/checkout@v4 - - name: Do some action caching - uses: actions/cache@v3 - with: - path: vendor/bundle - key: ${{ runner.os }}-gems-${{ matrix.ruby }}-${{ matrix.rails }}-${{ hashFiles('**/Gemfile.lock') }} - restore-keys: | - ${{ runner.os }}-gems-${{ matrix.ruby }}-${{ matrix.rails }}- - name: Install libpq-dev run: sudo apt-get -yqq install libpq-dev + - name: Set up Node + uses: actions/setup-node@v3 + with: + cache: 'npm' - name: Set up Ruby ${{ matrix.ruby }} uses: ruby/setup-ruby@v1 with: