Skip to content

Commit

Permalink
Remove actions/cache, just rely on ruby/node actions for caching
Browse files Browse the repository at this point in the history
  • Loading branch information
bkeepers committed Oct 13, 2023
1 parent ed90c55 commit 6350f0e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6350f0e

Please sign in to comment.