fix: try to fix bundle cache path

This commit is contained in:
Nolan Lawson 2022-11-25 09:55:54 -08:00
parent 5e753a7d5a
commit dd7acd483e
3 changed files with 5 additions and 9 deletions

View File

@ -2,8 +2,6 @@ name: Read-only e2e tests
on:
pull_request:
branches: [ master ]
env:
MASTODON_VERSION: 3.0.3
jobs:
test:
runs-on: ubuntu-18.04
@ -34,9 +32,9 @@ jobs:
- name: Cache Mastodon bundler
uses: actions/cache@v3
with:
path: mastodon/vendor/bundle
path: ~/.bundle-cache
# cache based on masto version implicitly defined in mastodon-config.js
key: masto-bundler-v1-${{ hashFiles('bin/mastodon-config.js') }}
key: masto-bundler-v2-${{ hashFiles('bin/mastodon-config.js') }}
- name: Cache Mastodon's and our yarn
uses: actions/cache@v3
with:

View File

@ -2,8 +2,6 @@ name: Read-write e2e tests
on:
pull_request:
branches: [ master ]
env:
MASTODON_VERSION: 3.0.3
jobs:
test:
runs-on: ubuntu-18.04
@ -34,9 +32,9 @@ jobs:
- name: Cache Mastodon bundler
uses: actions/cache@v3
with:
path: mastodon/vendor/bundle
path: ~/.bundle-cache
# cache based on masto version implicitly defined in mastodon-config.js
key: masto-bundler-v1-${{ hashFiles('bin/mastodon-config.js') }}
key: masto-bundler-v2-${{ hashFiles('bin/mastodon-config.js') }}
- name: Cache Mastodon's and our yarn
uses: actions/cache@v3
with:

View File

@ -29,7 +29,7 @@ export const mastodonDir = path.join(__dirname, '../mastodon')
export const env = Object.assign({}, process.env, {
RAILS_ENV: 'development',
NODE_ENV: 'development',
BUNDLE_PATH: path.join(mastodonDir, 'vendor/bundle'),
BUNDLE_PATH: process.env.CI ? path.join(__dirname, '../.bundle-cache') : path.join(mastodonDir, 'vendor/bundle'),
DB_NAME,
DB_USER,
DB_PASS,