Skip to content

Commit 2d58544

Browse files
committed
Fix CI cache
1 parent dd9766c commit 2d58544

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ jobs:
1414

1515
- name: Restore cache
1616
uses: actions/cache@v4
17+
id: cache
1718
with:
18-
key: cache-${{ hashFiles('bun.lock', 'Gemfile') }}
19+
key: cache-${{ hashFiles('bun.lock', 'gemfiles/*.lock') }}
1920
restore-keys: cache
2021
path: |
2122
node_modules
@@ -32,7 +33,8 @@ jobs:
3233
bundler-cache: false
3334

3435
- name: Install dependencies
35-
run: bun i && bundle
36+
if: steps.cache.outputs.cache-hit != 'true'
37+
run: bun i && bundle && gem info rails
3638

3739
- name: Run linters
3840
run: bin/lint
@@ -48,8 +50,9 @@ jobs:
4850

4951
- name: Restore cache
5052
uses: actions/cache@v4
53+
id: cache
5154
with:
52-
key: cache-${{ hashFiles('bun.lock', 'Gemfile') }}
55+
key: cache-${{ hashFiles('bun.lock', 'gemfiles/*.lock') }}
5356
restore-keys: cache
5457
path: |
5558
node_modules
@@ -65,13 +68,12 @@ jobs:
6568
ruby-version: ${{ matrix.ruby }}
6669
bundler-cache: false
6770

68-
- name: Set up Hotsheet
69-
run: |
70-
bun i --frozen-lockfile
71-
bundle
72-
bundle exec appraisal install
73-
bun run build
74-
bundle exec rails db:schema:load
71+
- name: Install dependencies
72+
if: steps.cache.outputs.cache-hit != 'true'
73+
run: bun i && bundle && bundle exec appraisal install && gem info rails
74+
75+
- name: Bundle assets and prepare database
76+
run: bun run build && bundle exec rails db:schema:load
7577

7678
- name: Run tests
7779
run: bin/check

0 commit comments

Comments
 (0)