File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change 14
14
15
15
- name : Restore cache
16
16
uses : actions/cache@v4
17
+ id : cache
17
18
with :
18
- key : cache -${{ hashFiles('bun.lock', 'Gemfile ') }}
19
- restore-keys : cache
19
+ key : lint -${{ hashFiles('bun.lock', 'gemfiles/*.lock ') }}
20
+ restore-keys : lint
20
21
path : |
21
22
node_modules
22
23
~/.bun/install/cache
32
33
bundler-cache : false
33
34
34
35
- name : Install dependencies
36
+ if : steps.cache.outputs.cache-hit != 'true'
35
37
run : bun i && bundle
36
38
37
39
- name : Run linters
48
50
49
51
- name : Restore cache
50
52
uses : actions/cache@v4
53
+ id : cache
51
54
with :
52
- key : cache -${{ hashFiles('bun.lock', 'Gemfile ') }}
53
- restore-keys : cache
55
+ key : test -${{ matrix.ruby }}-${{ hashFiles('bun.lock', 'gemfiles/*.lock ') }}
56
+ restore-keys : test-${{ matrix.ruby }}
54
57
path : |
55
58
node_modules
56
59
~/.bun/install/cache
@@ -65,13 +68,12 @@ jobs:
65
68
ruby-version : ${{ matrix.ruby }}
66
69
bundler-cache : false
67
70
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
74
+
75
+ - name : Bundle assets and prepare database
76
+ run : bun run build && bundle exec rails db:schema:load
75
77
76
78
- name : Run tests
77
79
run : bin/check
You can’t perform that action at this time.
0 commit comments